summaryrefslogtreecommitdiffstats
path: root/contrib/top
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
committerbde <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
commit0609531ab6b945c4918206f095bc1f6640408654 (patch)
tree0e5040099f85d8bf99734db8ff976b2c1e7d1b49 /contrib/top
parentbaf42e5599bd1cbdb2a0e5427980549767a002b8 (diff)
downloadFreeBSD-src-0609531ab6b945c4918206f095bc1f6640408654.zip
FreeBSD-src-0609531ab6b945c4918206f095bc1f6640408654.tar.gz
Fixed printf format errors.
Diffstat (limited to 'contrib/top')
-rw-r--r--contrib/top/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/top/utils.c b/contrib/top/utils.c
index e136d2a..94233de 100644
--- a/contrib/top/utils.c
+++ b/contrib/top/utils.c
@@ -391,7 +391,8 @@ long seconds;
{
/* standard method produces MMM:SS */
/* we avoid printf as must as possible to make this quick */
- sprintf(result, "%3d:%02d", seconds / 60l, seconds % 60l);
+ sprintf(result, "%3ld:%02ld",
+ (long)(seconds / 60), (long)(seconds % 60));
}
return(result);
}
OpenPOWER on IntegriCloud