Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/vmstat No point in using float here; makes evbmips64...



details:   https://anonhg.NetBSD.org/src/rev/4692a1cfdf99
branches:  trunk
changeset: 818262:4692a1cfdf99
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 04 17:36:21 2016 +0000

description:
No point in using float here; makes evbmips64 need __truncdfsf2, and that
causes static linking issues because of softfloat.

diffstat:

 usr.bin/vmstat/vmstat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 97502497f4ad -r 4692a1cfdf99 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Tue Oct 04 16:46:20 2016 +0000
+++ b/usr.bin/vmstat/vmstat.c   Tue Oct 04 17:36:21 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.207 2016/09/05 00:40:30 sevan Exp $ */
+/* $NetBSD: vmstat.c,v 1.208 2016/10/04 17:36:21 christos Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c   8.2 (Berkeley) 3/1/95";
 #else
-__RCSID("$NetBSD: vmstat.c,v 1.207 2016/09/05 00:40:30 sevan Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.208 2016/10/04 17:36:21 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1643,7 +1643,7 @@
        bool first = true;
        int ovflw;
        uint64_t tot;
-       float p;
+       double p;
 
        data = asysctlbyname("kern.pool", &len);
        if (data == NULL)



Home | Main Index | Thread Index | Old Index