diff options
| author | Sami Kerola <kerolasa@iki.fi> | 2013-03-07 20:02:46 +0000 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-03-12 15:24:04 +0100 |
| commit | ea72260cbebcc2e2c98ae4ea5de4e6debba2a472 (patch) | |
| tree | 7386519a973ff67e943af5a1739161a19d53d199 /misc-utils/kill.c | |
| parent | 44e5fcddc0b510c21bb050a471530f1d8c538d69 (diff) | |
| download | util-linux-ea72260cbebcc2e2c98ae4ea5de4e6debba2a472.tar.gz | |
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 bce3348c96..051f56d8ff 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 |
