]> granicus.if.org Git - procps-ng/commitdiff
kill: Correct pid type
authorCraig Small <csmall@enc.com.au>
Sat, 2 Jul 2016 05:18:29 +0000 (15:18 +1000)
committerCraig Small <csmall@enc.com.au>
Sat, 2 Jul 2016 05:18:29 +0000 (15:18 +1000)
Previous commit used a pid type of int in the printf, this should
be a long.

skill.c

diff --git a/skill.c b/skill.c
index 53be72ddd04516350622c77b07ad8fbf8512f7d3..49e871230fada0e63ae2074a65865e921c11efe9 100644 (file)
--- a/skill.c
+++ b/skill.c
@@ -500,7 +500,7 @@ static void __attribute__ ((__noreturn__))
                pid = strtol_or_err(argv[i], _("failed to parse argument"));
                if (!kill((pid_t) pid, signo))
                        continue;
-        error(0, errno, "(%d)", pid);
+        error(0, errno, "(%ld)", pid);
                exitvalue = EXIT_FAILURE;
                continue;
        }