summaryrefslogtreecommitdiff
path: root/usr.bin/systat/sensors.c
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2008-12-07 02:56:07 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2008-12-07 02:56:07 +0000
commit1175b367c77957b9c14d4c9527b4f111b9c8d63d (patch)
treed368526d476ffcf502c42e94d16428fa9bef3dd9 /usr.bin/systat/sensors.c
parent89ae31d1744f7a0a6124e4185e4f6859d09ef7ef (diff)
Warning cleanup including unused variables and shadowed names
Diffstat (limited to 'usr.bin/systat/sensors.c')
-rw-r--r--usr.bin/systat/sensors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/sensors.c b/usr.bin/systat/sensors.c
index 65c0c28f3d4..d12c0dbd644 100644
--- a/usr.bin/systat/sensors.c
+++ b/usr.bin/systat/sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.c,v 1.13 2008/06/12 22:26:01 canacar Exp $ */
+/* $OpenBSD: sensors.c,v 1.14 2008/12/07 02:56:06 canacar Exp $ */
/*
* Copyright (c) 2007 Deanna Phillips <deanna@openbsd.org>
@@ -333,7 +333,7 @@ fmttime(double in)
}
snprintf(outbuf, LEN,
- tiny ? "%s%lf %s" : "%s%.3lf %s",
+ tiny ? "%s%f %s" : "%s%.3f %s",
signbit == -1 ? "-" : "", in, unit);
return outbuf;