summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-06-07 00:00:29 +0000
committerjmallett <jmallett@FreeBSD.org>2002-06-07 00:00:29 +0000
commit95a388cd9a2895e20384419365d1e1edad8727bb (patch)
tree093c53f08cea365b9562110406b80e87f3c52e22 /bin
parentb858776460fee79d6f7918a3b4c367fe4878e7af (diff)
downloadFreeBSD-src-95a388cd9a2895e20384419365d1e1edad8727bb.zip
FreeBSD-src-95a388cd9a2895e20384419365d1e1edad8727bb.tar.gz
Cast to long to match format. Hidden by revision 1.18 of Makefile.
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 7864cae..a38cd25 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -542,7 +542,8 @@ elapsed(KINFO *k, VARENT *ve)
v = ve->var;
secs = now - k->ki_p->ki_start.tv_sec;
- (void)snprintf(obuff, sizeof(obuff), "%3ld:%02ld", secs/60, secs%60);
+ (void)snprintf(obuff, sizeof(obuff), "%3ld:%02ld", (long)secs/60,
+ (long)secs%60);
(void)printf("%*s", v->width, obuff);
}
OpenPOWER on IntegriCloud