summaryrefslogtreecommitdiff
path: root/usr.bin/who
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-08-22 04:43:42 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-08-22 04:43:42 +0000
commit323d1abbc45a9dfeae3d39b5f8cc041dc4b73bd1 (patch)
tree64ea330e44da28fb9da88722be4cb4e200afe707 /usr.bin/who
parent31003a7e68970e14de72e158246cccd33cccc1e7 (diff)
Correct format string mismatches turned up by -Wformat=2
suggestions and ok millert@
Diffstat (limited to 'usr.bin/who')
-rw-r--r--usr.bin/who/who.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c
index 88f70943a24..3506affc337 100644
--- a/usr.bin/who/who.c
+++ b/usr.bin/who/who.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: who.c,v 1.19 2010/11/15 10:57:49 otto Exp $ */
+/* $OpenBSD: who.c,v 1.20 2013/08/22 04:43:41 guenther Exp $ */
/* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */
/*
@@ -245,8 +245,8 @@ output(struct utmp *up)
(void)printf(" . ");
else if (idle < (24 * 60 * 60))
(void)printf("%02d:%02d ",
- (idle / (60 * 60)),
- (idle % (60 * 60)) / 60);
+ ((int)idle / (60 * 60)),
+ ((int)idle % (60 * 60)) / 60);
else
(void)printf(" old ");
}