diff options
author | Sami Kerola | 2013-03-07 21:02:46 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-12 15:24:04 +0100 |
commit | ea72260cbebcc2e2c98ae4ea5de4e6debba2a472 (patch) | |
tree | 7386519a973ff67e943af5a1739161a19d53d199 /misc-utils/kill.c | |
parent | kill: use libc error printing facilities and exit values (diff) | |
download | kernel-qcow2-util-linux-ea72260cbebcc2e2c98ae4ea5de4e6debba2a472.tar.gz kernel-qcow2-util-linux-ea72260cbebcc2e2c98ae4ea5de4e6debba2a472.tar.xz kernel-qcow2-util-linux-ea72260cbebcc2e2c98ae4ea5de4e6debba2a472.zip |
kill, procs: use pid_t for pids
Reference: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/linux/threads.h#n30
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/kill.c')
-rw-r--r-- | misc-utils/kill.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/kill.c b/misc-utils/kill.c index bce3348c9..051f56d8f 100644 --- a/misc-utils/kill.c +++ b/misc-utils/kill.c @@ -158,7 +158,7 @@ int main (int argc, char *argv[]) int errors, numsig, pid; char *ep, *arg; int do_pid, do_kill, check_all; - int *pids, *ip; + pid_t *pids, *ip; setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); @@ -422,12 +422,12 @@ static int usage(int status) return status; } -static int kill_verbose (char *procname, int pid, int sig) +static int kill_verbose (char *procname, pid_t pid, int sig) { int rc; if (sig < 0) { - printf ("%d\n", pid); + printf ("%ld\n", (long)pid); return 0; } #ifdef HAVE_SIGQUEUE |