From 0609531ab6b945c4918206f095bc1f6640408654 Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 6 Jul 1998 21:01:54 +0000 Subject: Fixed printf format errors. --- contrib/top/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/top') 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); } -- cgit v1.1