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.
int main(int argc, char **argv)
{
- unsigned long *pidlist;
+ pid_t *pidlist;
unsigned count = 0;
PROCTAB *PT;
proc_t p;
x_option && (d_option || X_option))
xerrx(EXIT_FAILURE, _("options -d, -x, -X are mutually exclusive"));
- pidlist = xmalloc(sizeof(unsigned long) * argc);
+ pidlist = xmalloc(sizeof(pid_t) * argc);
while (*argv) {
char *walk = *argv++;