Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/envstat Not all size_t's are equal to int...
details: https://anonhg.NetBSD.org/src/rev/abe6ad5493cb
branches: trunk
changeset: 543267:abe6ad5493cb
user: martin <martin%NetBSD.org@localhost>
date: Fri Feb 21 07:23:43 2003 +0000
description:
Not all size_t's are equal to int...
diffstat:
usr.sbin/envstat/envstat.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 8d22fd1df73c -r abe6ad5493cb usr.sbin/envstat/envstat.c
--- a/usr.sbin/envstat/envstat.c Fri Feb 21 06:40:47 2003 +0000
+++ b/usr.sbin/envstat/envstat.c Fri Feb 21 07:23:43 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: envstat.c,v 1.12 2003/02/20 20:57:08 christos Exp $ */
+/* $NetBSD: envstat.c,v 1.13 2003/02/21 07:23:43 martin Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: envstat.c,v 1.12 2003/02/20 20:57:08 christos Exp $");
+__RCSID("$NetBSD: envstat.c,v 1.13 2003/02/21 07:23:43 martin Exp $");
#endif
#include <fcntl.h>
@@ -317,13 +317,13 @@
273.15;
if (!celsius)
temp = (9.0 / 5.0) * temp + 32.0;
- printf(" %*.2f", width, temp);
+ printf(" %*.2f", (int)width, temp);
break;
case ENVSYS_SFANRPM:
- printf(" %*u", width, etds[i].cur.data_us);
+ printf(" %*u", (int)width, etds[i].cur.data_us);
break;
default:
- printf(" %*.2f", width, etds[i].cur.data_s /
+ printf(" %*.2f", (int)width, etds[i].cur.data_s /
1000000.0);
break;
}
Home |
Main Index |
Thread Index |
Old Index