]> granicus.if.org Git - procps-ng/commit
pmap: empty output or crashes on ppc/s390 caused by wrong pidlist type
authorJaromir Capik <jcapik@redhat.com>
Mon, 4 Feb 2013 17:21:39 +0000 (18:21 +0100)
committerCraig Small <csmall@enc.com.au>
Tue, 5 Feb 2013 11:10:18 +0000 (22:10 +1100)
commit365a5fa517324b8aab888e9a3ce640b3ccfc448b
tree68b134230a15e2faf577340d1f655b227652cb96
parent5a27c8095ef015e9c40709ba3186422bdf3fc069
pmap: empty output or crashes on ppc/s390 caused by wrong pidlist type

Previously the pidlist variable was defined as unsigned long *
whilst the openproc function accepts pid_t *.
Both target types differ in size (8 != 4) and therefore the issue
mainly affects big endian architectures.

This commit changes the pidlist type to pid_t * so that it's
compatible with openproc.
pmap.c