summaryrefslogtreecommitdiff
path: root/usr.bin/lastcomm/lastcomm.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 22:54:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 22:54:55 +0000
commite0410762c45b2d35a07231a067cc34e83ec0b8d7 (patch)
tree8d1e62dcd49b4af64867489a25e0955149705035 /usr.bin/lastcomm/lastcomm.c
parent20cb3720a81db1b38bed65743ee165d22b683a35 (diff)
lint begs for proactive casting, so we give it
Diffstat (limited to 'usr.bin/lastcomm/lastcomm.c')
-rw-r--r--usr.bin/lastcomm/lastcomm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c
index 4219101d1dc..d3c892c2b81 100644
--- a/usr.bin/lastcomm/lastcomm.c
+++ b/usr.bin/lastcomm/lastcomm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lastcomm.c,v 1.13 2003/06/26 21:59:11 deraadt Exp $ */
+/* $OpenBSD: lastcomm.c,v 1.14 2004/09/14 22:54:54 deraadt Exp $ */
/* $NetBSD: lastcomm.c,v 1.9 1995/10/22 01:43:42 ghudson Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)lastcomm.c 8.2 (Berkeley) 4/29/95";
#endif
-static char rcsid[] = "$OpenBSD: lastcomm.c,v 1.13 2003/06/26 21:59:11 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: lastcomm.c,v 1.14 2004/09/14 22:54:54 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -140,8 +140,8 @@ main(int argc, char *argv[])
delta = expand(ab.ac_etime) / (double)AHZ;
printf(" (%1.0f:%02.0f:%05.2f)\n",
delta / SECSPERHOUR,
- fmod(delta, SECSPERHOUR) / SECSPERMIN,
- fmod(delta, SECSPERMIN));
+ fmod(delta, (double)SECSPERHOUR) / SECSPERMIN,
+ fmod(delta, (double)SECSPERMIN));
}
if (size == 0)