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

References:
 commit 5e9c522eeade3a2cb1f5679db84d8164b405860d

kill.c

diff --git a/kill.c b/kill.c
index 39386df26b3d7ca24aed3d881d15d1bcd2250b6c..b3c9a5fe7f2e3668b8e2c1959c909763d519b9c3 100644 (file)
--- a/kill.c
+++ b/kill.c
@@ -132,7 +132,7 @@ int main(int argc, char **argv)
         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;
     }