pgrep: fix compiler warning
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>
This commit is contained in:
parent
3489b9343e
commit
12dce9f83b
2
pgrep.c
2
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user