aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/dkstat.h
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1994-08-18 22:36:09 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1994-08-18 22:36:09 +0000
commitf23b4c91c4fb94e1bb6aeb4e7747f4ccf7767b41 (patch)
tree6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/sys/dkstat.h
parentfa074287a4952da8528838c7812d02678e4c7205 (diff)
downloadsrc-f23b4c91c4fb94e1bb6aeb4e7747f4ccf7767b41.tar.gz
src-f23b4c91c4fb94e1bb6aeb4e7747f4ccf7767b41.zip
Fix up some sloppy coding practices:
- Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter.
Notes
Notes: svn path=/head/; revision=2112
Diffstat (limited to 'sys/sys/dkstat.h')
-rw-r--r--sys/sys/dkstat.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/sys/sys/dkstat.h b/sys/sys/dkstat.h
index 5cc6bdd843cd..2486ddbfcff1 100644
--- a/sys/sys/dkstat.h
+++ b/sys/sys/dkstat.h
@@ -36,9 +36,12 @@
* SUCH DAMAGE.
*
* @(#)dkstat.h 8.2 (Berkeley) 1/21/94
- * $Id$
+ * $Id: dkstat.h,v 1.2 1994/08/02 07:52:51 davidg Exp $
*/
+#ifndef _SYS_DKSTAT_H_
+#define _SYS_DKSTAT_H_ 1
+
#define CP_USER 0
#define CP_NICE 1
#define CP_SYS 2
@@ -48,18 +51,20 @@
#define DK_NDRIVE 8
#ifdef KERNEL
-long cp_time[CPUSTATES];
-long dk_seek[DK_NDRIVE];
-long dk_time[DK_NDRIVE];
-long dk_wds[DK_NDRIVE];
-long dk_wpms[DK_NDRIVE];
-long dk_xfer[DK_NDRIVE];
+extern long cp_time[CPUSTATES];
+extern long dk_seek[DK_NDRIVE];
+extern long dk_time[DK_NDRIVE];
+extern long dk_wds[DK_NDRIVE];
+extern long dk_wpms[DK_NDRIVE];
+extern long dk_xfer[DK_NDRIVE];
-int dk_busy;
-int dk_ndrive;
+extern int dk_busy;
+extern int dk_ndrive;
-long tk_cancc;
-long tk_nin;
-long tk_nout;
-long tk_rawcc;
+extern long tk_cancc;
+extern long tk_nin;
+extern long tk_nout;
+extern long tk_rawcc;
#endif
+
+#endif /* _SYS_DKSTAT_H_ */