]> granicus.if.org Git - procps-ng/commitdiff
ps/output.c: eliminate one irritating compiler warning
authorJim Warner <james.warner@comcast.net>
Wed, 6 Jun 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 9 Jun 2018 11:45:38 +0000 (21:45 +1000)
Signed-off-by: Jim Warner <james.warner@comcast.net>
ps/output.c

index abf657d6fbee438674d5a4f116775e086560ea93..28697ccb40e18c955e40cee7e5e09a2542a872da 100644 (file)
@@ -449,7 +449,7 @@ static int pr_times(char *restrict const outbuf, const proc_t *restrict const pp
     unsigned long t;
 setREL1(TIME_ALL)
     t = rSv(TIME_ALL, ull_int, pp);
-  return snprintf(outbuf, COLWID, "%u", t);
+  return snprintf(outbuf, COLWID, "%lu", t);
 }
 
 /* HP-UX puts this (I forget, vsz or vsize?) in kB and uses "sz" for pages.