From: Craig Small Date: Sat, 2 Jul 2016 05:18:29 +0000 (+1000) Subject: kill: Correct pid type X-Git-Tag: v3.3.12~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=672eea2832649b92f9bc53a9b160ba8bb73619cf;p=procps-ng kill: Correct pid type Previous commit used a pid type of int in the printf, this should be a long. --- diff --git a/skill.c b/skill.c index 53be72dd..49e87123 100644 --- 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; }