diff options
author | bde <bde@FreeBSD.org> | 1998-02-25 07:12:17 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-02-25 07:12:17 +0000 |
commit | dd04474345429a111f490c7982f1a882e64af161 (patch) | |
tree | 821dece15ec149537171d63b6cfa5f010f4bde19 /sys | |
parent | b58c846db625ae64e42aece176c9f0c3b4de6083 (diff) | |
download | FreeBSD-src-dd04474345429a111f490c7982f1a882e64af161.zip FreeBSD-src-dd04474345429a111f490c7982f1a882e64af161.tar.gz |
Added missing #include of "opt_devfs.h".
Fixed pedantic semantics errors (in ANSI C, static arrays must have
a size, and static objects should be consistently declared as static
unless you know more than anyone should have to know about the
linkage rules).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/bktr/bktr_core.c | 7 | ||||
-rw-r--r-- | sys/pci/brooktree848.c | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c index 3f0700b..6c5d016 100644 --- a/sys/dev/bktr/bktr_core.c +++ b/sys/dev/bktr/bktr_core.c @@ -222,6 +222,7 @@ #ifdef __FreeBSD__ #include "bktr.h" +#include "opt_devfs.h" #include "pci.h" #endif /* __FreeBSD__ */ @@ -656,8 +657,6 @@ static u_long status_sum = 0; /* * misc. support routines. */ -static const struct CARDTYPE cards[]; -static const struct TUNER tuners[]; static int signCard( bktr_ptr_t bktr, int offset, int count, u_char* sig ); static void probeCard( bktr_ptr_t bktr, int verbose ); @@ -3748,7 +3747,7 @@ readEEProm( bktr_ptr_t bktr, int offset, int count, u_char *data ) * Note: * these entried MUST be kept in the order defined by the CARD_XXX defines! */ -const struct CARDTYPE cards[] = { +static const struct CARDTYPE cards[] = { /* CARD_UNKNOWN */ { "Unknown", /* the 'name' */ @@ -3841,7 +3840,7 @@ struct TUNER { u_char bandAddrs[ 3 ]; }; */ -const struct TUNER tuners[] = { +static const struct TUNER tuners[] = { /* XXX FIXME: fill in the band-switch crosspoints */ /* NO_TUNER */ { "<none>", /* the 'name' */ diff --git a/sys/pci/brooktree848.c b/sys/pci/brooktree848.c index 3f0700b..6c5d016 100644 --- a/sys/pci/brooktree848.c +++ b/sys/pci/brooktree848.c @@ -222,6 +222,7 @@ #ifdef __FreeBSD__ #include "bktr.h" +#include "opt_devfs.h" #include "pci.h" #endif /* __FreeBSD__ */ @@ -656,8 +657,6 @@ static u_long status_sum = 0; /* * misc. support routines. */ -static const struct CARDTYPE cards[]; -static const struct TUNER tuners[]; static int signCard( bktr_ptr_t bktr, int offset, int count, u_char* sig ); static void probeCard( bktr_ptr_t bktr, int verbose ); @@ -3748,7 +3747,7 @@ readEEProm( bktr_ptr_t bktr, int offset, int count, u_char *data ) * Note: * these entried MUST be kept in the order defined by the CARD_XXX defines! */ -const struct CARDTYPE cards[] = { +static const struct CARDTYPE cards[] = { /* CARD_UNKNOWN */ { "Unknown", /* the 'name' */ @@ -3841,7 +3840,7 @@ struct TUNER { u_char bandAddrs[ 3 ]; }; */ -const struct TUNER tuners[] = { +static const struct TUNER tuners[] = { /* XXX FIXME: fill in the band-switch crosspoints */ /* NO_TUNER */ { "<none>", /* the 'name' */ |