summaryrefslogtreecommitdiff
path: root/usr.bin/systat/vmstat.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-06-13 10:06:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-06-13 10:06:15 +0000
commitf1e1220e3fd00c154ba519b596c16d734475bb87 (patch)
treed01617d14f49b0ff6c974e898f98f484b1387a1a /usr.bin/systat/vmstat.c
parent43d00340767962573e8f4418536d673eef26b8a9 (diff)
compile on older gcc; no decl after code
Diffstat (limited to 'usr.bin/systat/vmstat.c')
-rw-r--r--usr.bin/systat/vmstat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index c8e33e69a0c..033b3613ea0 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmstat.c,v 1.64 2008/06/12 22:26:01 canacar Exp $ */
+/* $OpenBSD: vmstat.c,v 1.65 2008/06/13 10:06:14 deraadt Exp $ */
/* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#endif
-static char rcsid[] = "$OpenBSD: vmstat.c,v 1.64 2008/06/12 22:26:01 canacar Exp $";
+static char rcsid[] = "$OpenBSD: vmstat.c,v 1.65 2008/06/13 10:06:14 deraadt Exp $";
#endif /* not lint */
/*
@@ -170,6 +170,7 @@ int ncpu = 1;
int
initvmstat(void)
{
+ field_view *v;
int mib[4], i;
size_t size;
@@ -219,8 +220,6 @@ initvmstat(void)
getinfo(&s2);
copyinfo(&z, &s1);
- field_view *v;
-
for (v = views_vm; v->name != NULL; v++)
add_view(v);