Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vmstat Don't "extern" variables and function in dkst...
details: https://anonhg.NetBSD.org/src/rev/11a549d4111f
branches: trunk
changeset: 499871:11a549d4111f
user: simonb <simonb%NetBSD.org@localhost>
date: Fri Dec 01 02:08:26 2000 +0000
description:
Don't "extern" variables and function in dkstats.c, declare them in
dkstats.h instead.
diffstat:
usr.bin/vmstat/dkstats.h | 11 ++++++++++-
usr.bin/vmstat/vmstat.c | 13 ++-----------
2 files changed, 12 insertions(+), 12 deletions(-)
diffs (70 lines):
diff -r 33dcec5dc0cf -r 11a549d4111f usr.bin/vmstat/dkstats.h
--- a/usr.bin/vmstat/dkstats.h Fri Dec 01 02:07:04 2000 +0000
+++ b/usr.bin/vmstat/dkstats.h Fri Dec 01 02:08:26 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dkstats.h,v 1.2 2000/05/29 11:36:43 simonb Exp $ */
+/* $NetBSD: dkstats.h,v 1.3 2000/12/01 02:08:26 simonb Exp $ */
/*
* Copyright (c) 1996 John M. Vinopal
@@ -33,6 +33,7 @@
*/
#include <sys/time.h>
+#include <sys/sched.h>
#include <unistd.h>
/* poseur disk entry to hold the information we're interested in. */
@@ -47,3 +48,11 @@
u_int64_t tk_nout; /* TTY Chars out. */
u_int64_t cp_time[CPUSTATES]; /* System timer ticks. */
};
+
+extern struct _disk cur;
+extern char **dr_name;
+extern int *dk_select, dk_ndrive;
+
+int dkinit(int, gid_t);
+void dkswap(void);
+void dkreadstats(void);
diff -r 33dcec5dc0cf -r 11a549d4111f usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c Fri Dec 01 02:07:04 2000 +0000
+++ b/usr.bin/vmstat/vmstat.c Fri Dec 01 02:08:26 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.73 2000/11/30 23:59:04 simonb Exp $ */
+/* $NetBSD: vmstat.c,v 1.74 2000/12/01 02:08:26 simonb Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 3/1/95";
#else
-__RCSID("$NetBSD: vmstat.c,v 1.73 2000/11/30 23:59:04 simonb Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.74 2000/12/01 02:08:26 simonb Exp $");
#endif
#endif /* not lint */
@@ -154,11 +154,6 @@
{ "" },
};
-/* Objects defined in dkstats.c */
-extern struct _disk cur;
-extern char **dr_name;
-extern int *dk_select, dk_ndrive;
-
struct uvmexp uvmexp, ouvmexp;
int ndrives;
@@ -197,10 +192,6 @@
int main(int, char **);
char **choosedrives(char **);
-extern int dkinit(int, gid_t);
-extern void dkreadstats(void);
-extern void dkswap(void);
-
/* Namelist and memory file names. */
char *nlistf, *memf;
Home |
Main Index |
Thread Index |
Old Index