]> granicus.if.org Git - procps-ng/commitdiff
pgrep: fix compiler warning
authorSami Kerola <kerolasa@iki.fi>
Sat, 21 Jan 2012 01:14:21 +0000 (02:14 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 21 Jan 2012 11:15:41 +0000 (12:15 +0100)
pgrep.c:786:4: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
pgrep.c

diff --git a/pgrep.c b/pgrep.c
index 65ca9060a116ee0b3983b670c4a7a7561725c2c2..dfa644ae6bdb8b1eea65c044bb57cc6638ce2cd7 100644 (file)
--- a/pgrep.c
+++ b/pgrep.c
@@ -783,7 +783,7 @@ int main (int argc, char **argv)
                }
        } else {
                if (opt_count) {
-                       fprintf(stdout, "%ld\n", num);
+                       fprintf(stdout, "%d\n", num);
                } else {
                        if (opt_long)
                                output_strlist (procs,num);