Module Name: src
Committed By: joerg
Date: Tue Aug 30 19:06:06 UTC 2011
Modified Files:
src/usr.sbin/iostat: iostat.c
Log Message:
static + __dead
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 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.59 src/usr.sbin/iostat/iostat.c:1.60
--- src/usr.sbin/iostat/iostat.c:1.59 Mon Feb 14 02:43:37 2011
+++ src/usr.sbin/iostat/iostat.c Tue Aug 30 19:06:06 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: iostat.c,v 1.59 2011/02/14 02:43:37 enami Exp $ */
+/* $NetBSD: iostat.c,v 1.60 2011/08/30 19:06:06 joerg 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.59 2011/02/14 02:43:37 enami Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.60 2011/08/30 19:06:06 joerg Exp $");
#endif
#endif /* not lint */
@@ -94,7 +94,8 @@
/* Namelist and memory files. */
char *nlistf, *memf;
-int hz, reps, interval;
+int hz;
+static int reps, interval;
static int todo = 0;
static int defdrives;
static int winlines = 20;
@@ -118,12 +119,10 @@
static void sig_header(int);
static volatile int do_header;
static void header(void);
-static void usage(void);
+__dead static void usage(void);
static void display(void);
static int selectdrives(int, char *[]);
-int main(int, char *[]);
-
int
main(int argc, char *argv[])
{
@@ -248,7 +247,7 @@
}
static void
-header()
+header(void)
{
size_t i;