Module Name: src
Committed By: jakllsch
Date: Sat Jan 8 02:36:52 UTC 2011
Modified Files:
src/usr.sbin/iostat: iostat.c
Log Message:
NetBSD/vax does not implement fmax(3), substitute with existing MAX() macro.
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/usr.sbin/iostat/iostat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/iostat/iostat.c
diff -u src/usr.sbin/iostat/iostat.c:1.54 src/usr.sbin/iostat/iostat.c:1.55
--- src/usr.sbin/iostat/iostat.c:1.54 Fri Jan 7 03:12:27 2011
+++ src/usr.sbin/iostat/iostat.c Sat Jan 8 02:36:52 2011
@@ -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);
}
}