summaryrefslogtreecommitdiffstats
path: root/usr.bin/w
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1997-12-28 17:50:10 +0000
committeralex <alex@FreeBSD.org>1997-12-28 17:50:10 +0000
commitc9da542ee59a89fd6cedd640d512e916f5d6a0b8 (patch)
tree08a6f470433369e785fa6a5f4f26eda40e157f71 /usr.bin/w
parent87f11cf19320871fea90474134dca49de7749362 (diff)
downloadFreeBSD-src-c9da542ee59a89fd6cedd640d512e916f5d6a0b8.zip
FreeBSD-src-c9da542ee59a89fd6cedd640d512e916f5d6a0b8.tar.gz
-Wall cleanup.
Diffstat (limited to 'usr.bin/w')
-rw-r--r--usr.bin/w/pr_time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/w/pr_time.c b/usr.bin/w/pr_time.c
index a2e54e6..0b53586 100644
--- a/usr.bin/w/pr_time.c
+++ b/usr.bin/w/pr_time.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)pr_time.c 8.2 (Berkeley) 4/4/94";
#endif
static const char rcsid[] =
- "$Id: pr_time.c,v 1.9 1997/08/25 06:42:18 charnier Exp $";
+ "$Id: pr_time.c,v 1.10 1997/08/26 06:59:34 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -104,14 +104,14 @@ pr_idle(idle)
/* If idle more than an hour, print as HH:MM. */
else if (idle >= 3600)
(void)printf(" %2d:%02d ",
- idle / 3600, (idle % 3600) / 60);
+ (int)(idle / 3600), (int)((idle % 3600) / 60));
else if (idle / 60 == 0)
(void)printf(" - ");
/* Else print the minutes idle. */
else
- (void)printf(" %2d ", idle / 60);
+ (void)printf(" %2d ", (int)(idle / 60));
return(0); /* not idle longer than 9 days */
}
OpenPOWER on IntegriCloud