Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/bktr It is a bad idea to declare a static bootve...



details:   https://anonhg.NetBSD.org/src/rev/ceffd7b9134a
branches:  trunk
changeset: 485856:ceffd7b9134a
user:      veego <veego%NetBSD.org@localhost>
date:      Sun May 07 14:43:31 2000 +0000

description:
It is a bad idea to declare a static bootverbose variable here. Remove it.

diffstat:

 sys/dev/pci/bktr/bktr_audio.c |  7 ++-----
 sys/dev/pci/bktr/bktr_card.c  |  6 +-----
 sys/dev/pci/bktr/bktr_core.c  |  4 +---
 sys/dev/pci/bktr/bktr_os.c    |  5 +----
 4 files changed, 5 insertions(+), 17 deletions(-)

diffs (85 lines):

diff -r fb3685834540 -r ceffd7b9134a sys/dev/pci/bktr/bktr_audio.c
--- a/sys/dev/pci/bktr/bktr_audio.c     Sun May 07 14:03:25 2000 +0000
+++ b/sys/dev/pci/bktr/bktr_audio.c     Sun May 07 14:43:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bktr_audio.c,v 1.3 2000/05/07 13:50:10 wiz Exp $       */
+/*     $NetBSD: bktr_audio.c,v 1.4 2000/05/07 14:43:31 veego Exp $     */
 
 /* FreeBSD: src/sys/dev/bktr/bktr_audio.c,v 1.2 1999/10/28 13:58:14 roger Exp */
 /*
@@ -52,10 +52,6 @@
 #include <sys/systm.h>
 #include <sys/kernel.h>
 #include <sys/vnode.h>
-#ifdef __NetBSD__
-#include <sys/proc.h>
-static int bootverbose = 1;
-#endif
 
 #ifdef __FreeBSD__
 #include <machine/clock.h>             /* for DELAY */
@@ -69,6 +65,7 @@
 #endif
 
 #ifdef __NetBSD__
+#include <sys/proc.h>
 #include <dev/ic/bt8xx.h>      /* NetBSD location of .h files */
 #include <dev/pci/bktr/bktr_reg.h>
 #include <dev/pci/bktr/bktr_core.h>
diff -r fb3685834540 -r ceffd7b9134a sys/dev/pci/bktr/bktr_card.c
--- a/sys/dev/pci/bktr/bktr_card.c      Sun May 07 14:03:25 2000 +0000
+++ b/sys/dev/pci/bktr/bktr_card.c      Sun May 07 14:43:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bktr_card.c,v 1.2 2000/05/07 00:24:33 wiz Exp $        */
+/*     $NetBSD: bktr_card.c,v 1.3 2000/05/07 14:43:32 veego Exp $      */
 
 /* FreeBSD: src/sys/dev/bktr/bktr_card.c,v 1.9 2000/02/12 08:49:21 peter Exp */
 
@@ -83,10 +83,6 @@
 #include <dev/bktr/bktr_audio.h>
 #endif
 
-#ifdef __NetBSD__
-static int bootverbose = 1;
-#endif
-
 /* Various defines */
 #define HAUP_REMOTE_INT_WADDR   0x30
 #define HAUP_REMOTE_INT_RADDR   0x31
diff -r fb3685834540 -r ceffd7b9134a sys/dev/pci/bktr/bktr_core.c
--- a/sys/dev/pci/bktr/bktr_core.c      Sun May 07 14:03:25 2000 +0000
+++ b/sys/dev/pci/bktr/bktr_core.c      Sun May 07 14:43:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bktr_core.c,v 1.2 2000/05/07 00:24:33 wiz Exp $        */
+/*     $NetBSD: bktr_core.c,v 1.3 2000/05/07 14:43:32 veego Exp $      */
 
 /* FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.106 2000/04/16 07:50:08 roger Exp */
 
@@ -185,8 +185,6 @@
 #include <dev/pci/bktr/bktr_core.h>
 #include <dev/pci/bktr/bktr_os.h>
 
-static int bootverbose = 1;
-
 static int bt848_format = -1;
 
 #endif /* __NetBSD__ || __OpenBSD__ */
diff -r fb3685834540 -r ceffd7b9134a sys/dev/pci/bktr/bktr_os.c
--- a/sys/dev/pci/bktr/bktr_os.c        Sun May 07 14:03:25 2000 +0000
+++ b/sys/dev/pci/bktr/bktr_os.c        Sun May 07 14:43:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bktr_os.c,v 1.3 2000/05/07 01:16:23 wiz Exp $  */
+/*     $NetBSD: bktr_os.c,v 1.4 2000/05/07 14:43:32 veego Exp $        */
 
 /* FreeBSD: src/sys/dev/bktr/bktr_os.c,v 1.7 2000/04/16 07:50:09 roger Exp */
 
@@ -168,9 +168,6 @@
 #include <dev/pci/pcireg.h>
 #include <dev/pci/pcidevs.h>
 
-static int bootverbose = 1;
-
-
 #define BKTR_DEBUG
 #ifdef BKTR_DEBUG
 int bktr_debug = 0;



Home | Main Index | Thread Index | Old Index