summaryrefslogtreecommitdiff
path: root/usr.bin/nfsstat
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-01-15 22:57:43 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-01-15 22:57:43 +0000
commit4622b779b74b646cca691088550d298ffe4a11d0 (patch)
tree11f4e36075448d9d86aaceec90e1b89298fa8ca3 /usr.bin/nfsstat
parentc0553d9c8bfc1727cb48e933095c01c69790a787 (diff)
mib[4], not mib[3]; fixes nfsstat breakage
Diffstat (limited to 'usr.bin/nfsstat')
-rw-r--r--usr.bin/nfsstat/nfsstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c
index 54cf1fbe906..588ae880e4e 100644
--- a/usr.bin/nfsstat/nfsstat.c
+++ b/usr.bin/nfsstat/nfsstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfsstat.c,v 1.16 2003/01/15 22:20:15 millert Exp $ */
+/* $OpenBSD: nfsstat.c,v 1.17 2003/01/15 22:57:42 millert Exp $ */
/* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */
/*
@@ -48,7 +48,7 @@ static char copyright[] =
static char sccsid[] = "from: @(#)nfsstat.c 8.1 (Berkeley) 6/6/93";
static char *rcsid = "$NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $";
#else
-static char *rcsid = "$OpenBSD: nfsstat.c,v 1.16 2003/01/15 22:20:15 millert Exp $";
+static char *rcsid = "$OpenBSD: nfsstat.c,v 1.17 2003/01/15 22:57:42 millert Exp $";
#endif
#endif /* not lint */
@@ -151,7 +151,7 @@ main(argc, argv)
if (kvm_nlist(kd, nl) != 0)
errx(1, "kvm_nlist: can't get names");
} else {
- int mib[3];
+ int mib[4];
size_t len;
mib[0] = CTL_VFS;