Module Name: src
Committed By: njoly
Date: Fri Jun 20 07:08:15 UTC 2014
Modified Files:
src/usr.bin/systat: vmstat.c
Log Message:
Remove fagile test which ensured that first namelist element (was
X_NCHSTATS) had a known type. Make disk stats available again for
vmstat display.
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/usr.bin/systat/vmstat.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.bin/systat/vmstat.c
diff -u src/usr.bin/systat/vmstat.c:1.79 src/usr.bin/systat/vmstat.c:1.80
--- src/usr.bin/systat/vmstat.c:1.79 Sat Jun 14 20:10:42 2014
+++ src/usr.bin/systat/vmstat.c Fri Jun 20 07:08:15 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.79 2014/06/14 20:10:42 joerg Exp $ */
+/* $NetBSD: vmstat.c,v 1.80 2014/06/20 07:08:15 njoly Exp $ */
/*-
* Copyright (c) 1983, 1989, 1992, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#endif
-__RCSID("$NetBSD: vmstat.c,v 1.79 2014/06/14 20:10:42 joerg Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.80 2014/06/20 07:08:15 njoly Exp $");
#endif /* not lint */
/*
@@ -212,10 +212,6 @@ initvmstat(void)
nlisterr(namelist);
return(0);
}
- if (namelist[0].n_type == 0) {
- error("No namelist");
- return(0);
- }
}
hertz = stathz ? stathz : hz;
if (!drvinit(1))