Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/iostat NetBSD/vax does not implement fmax(3), subst...
details: https://anonhg.NetBSD.org/src/rev/f38079cee4cb
branches: trunk
changeset: 760576:f38079cee4cb
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Jan 08 02:36:52 2011 +0000
description:
NetBSD/vax does not implement fmax(3), substitute with existing MAX() macro.
diffstat:
usr.sbin/iostat/iostat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7800161fba1c -r f38079cee4cb usr.sbin/iostat/iostat.c
--- a/usr.sbin/iostat/iostat.c Sat Jan 08 00:55:37 2011 +0000
+++ b/usr.sbin/iostat/iostat.c Sat Jan 08 02:36:52 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iostat.c,v 1.54 2011/01/07 03:12:27 jakllsch Exp $ */
+/* $NetBSD: iostat.c,v 1.55 2011/01/08 02:36:52 jakllsch Exp $ */
/*
* Copyright (c) 1996 John M. Vinopal
@@ -71,7 +71,7 @@
#if 0
static char sccsid[] = "@(#)iostat.c 8.3 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: iostat.c,v 1.54 2011/01/07 03:12:27 jakllsch Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.55 2011/01/08 02:36:52 jakllsch Exp $");
#endif
#endif /* not lint */
@@ -344,7 +344,7 @@
mbps = 0;
mbps /= etime;
(void)printf(" %5.*f ",
- MAX(0,3-(int)floor(log10(fabs(fmax(1.0,mbps))))), mbps);
+ MAX(0,3-(int)floor(log10(fabs(MAX(1.0,mbps))))), mbps);
}
}
Home |
Main Index |
Thread Index |
Old Index