diff options
author | phk <phk@FreeBSD.org> | 1995-12-08 23:23:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-08 23:23:00 +0000 |
commit | a69d1dfbcb7bc187703b1767f289aba2bd4edbb6 (patch) | |
tree | 0408fdddf8ea8eeab5dc960ead9a7c96a2e301bd /sys/dev | |
parent | 5a5b07fa54887595e0725dba442af441c842786a (diff) | |
download | FreeBSD-src-a69d1dfbcb7bc187703b1767f289aba2bd4edbb6.zip FreeBSD-src-a69d1dfbcb7bc187703b1767f289aba2bd4edbb6.tar.gz |
Julian forgot to make the *devsw structures static.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cy/cy.c | 4 | ||||
-rw-r--r-- | sys/dev/cy/cy_isa.c | 4 | ||||
-rw-r--r-- | sys/dev/dgb/dgb.c | 4 | ||||
-rw-r--r-- | sys/dev/fdc/fdc.c | 6 | ||||
-rw-r--r-- | sys/dev/joy/joy.c | 2 | ||||
-rw-r--r-- | sys/dev/mcd/mcd.c | 6 | ||||
-rw-r--r-- | sys/dev/mse/mse.c | 4 | ||||
-rw-r--r-- | sys/dev/rc/rc.c | 2 | ||||
-rw-r--r-- | sys/dev/scd/scd.c | 6 | ||||
-rw-r--r-- | sys/dev/si/si.c | 4 | ||||
-rw-r--r-- | sys/dev/sio/sio.c | 4 | ||||
-rw-r--r-- | sys/dev/snp/snp.c | 2 | ||||
-rw-r--r-- | sys/dev/speaker/spkr.c | 4 | ||||
-rw-r--r-- | sys/dev/vn/vn.c | 4 |
14 files changed, 28 insertions, 28 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index acd4db6..bc078cc 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.23 1995/12/06 23:42:34 bde Exp $ + * $Id: cy.c,v 1.24 1995/12/08 11:14:04 julian Exp $ */ #include "cy.h" @@ -371,7 +371,7 @@ static d_stop_t cystop; static d_ttycv_t cydevtotty; #define CDEV_MAJOR 48 -struct cdevsw cy_cdevsw = +static struct cdevsw cy_cdevsw = { cyopen, cyclose, cyread, cywrite, /*48*/ cyioctl, cystop, nxreset, cydevtotty,/*cyclades*/ ttselect, nxmmap, NULL, "cy", NULL, -1 }; diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c index acd4db6..bc078cc 100644 --- a/sys/dev/cy/cy_isa.c +++ b/sys/dev/cy/cy_isa.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.23 1995/12/06 23:42:34 bde Exp $ + * $Id: cy.c,v 1.24 1995/12/08 11:14:04 julian Exp $ */ #include "cy.h" @@ -371,7 +371,7 @@ static d_stop_t cystop; static d_ttycv_t cydevtotty; #define CDEV_MAJOR 48 -struct cdevsw cy_cdevsw = +static struct cdevsw cy_cdevsw = { cyopen, cyclose, cyread, cywrite, /*48*/ cyioctl, cystop, nxreset, cydevtotty,/*cyclades*/ ttselect, nxmmap, NULL, "cy", NULL, -1 }; diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c index 8187b44..f293977 100644 --- a/sys/dev/dgb/dgb.c +++ b/sys/dev/dgb/dgb.c @@ -1,5 +1,5 @@ /*- - * dgb.c $Id: dgb.c,v 1.9 1995/12/07 12:45:18 davidg Exp $ + * dgb.c $Id: dgb.c,v 1.10 1995/12/08 11:12:42 julian Exp $ * * Digiboard driver. * @@ -204,7 +204,7 @@ static d_stop_t dgbstop; static d_ttycv_t dgbdevtotty; #define CDEV_MAJOR 58 -struct cdevsw dgb_cdevsw = +static struct cdevsw dgb_cdevsw = { dgbopen, dgbclose, dgbread, dgbwrite, /*58*/ dgbioctl, dgbstop, nxreset, dgbdevtotty, /* dgb */ ttselect, nommap, NULL, "dgb", NULL, -1 }; diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index e1b3436..78c4840 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -43,7 +43,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.72 1995/11/28 09:41:00 julian Exp $ + * $Id: fd.c,v 1.73 1995/12/08 11:14:10 julian Exp $ * */ @@ -350,11 +350,11 @@ static d_strategy_t fdstrategy; #define CDEV_MAJOR 9 #define BDEV_MAJOR 2 extern struct cdevsw fd_cdevsw; -struct bdevsw fd_bdevsw = +static struct bdevsw fd_bdevsw = { Fdopen, fdclose, fdstrategy, fdioctl, /*2*/ nxdump, zerosize, 0, "fd", &fd_cdevsw, -1 }; -struct cdevsw fd_cdevsw = +static struct cdevsw fd_cdevsw = { Fdopen, fdclose, rawread, rawwrite, /*9*/ fdioctl, nostop, nullreset, nodevtotty, seltrue, nommap, fdstrategy, "fd", diff --git a/sys/dev/joy/joy.c b/sys/dev/joy/joy.c index 2955d1c..99008ad 100644 --- a/sys/dev/joy/joy.c +++ b/sys/dev/joy/joy.c @@ -91,7 +91,7 @@ static d_close_t joyclose; static d_read_t joyread; static d_ioctl_t joyioctl; -struct cdevsw joy_cdevsw = +static struct cdevsw joy_cdevsw = { joyopen, joyclose, joyread, nowrite, /*51*/ joyioctl, nostop, nullreset, nodevtotty,/*joystick */ seltrue, nommap, NULL, "joy", NULL, -1 }; diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index ee2e03a..8bd2782 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -40,7 +40,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mcd.c,v 1.51 1995/11/29 14:39:46 julian Exp $ + * $Id: mcd.c,v 1.52 1995/12/08 11:14:34 julian Exp $ */ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; @@ -222,11 +222,11 @@ static d_strategy_t mcdstrategy; #define CDEV_MAJOR 29 #define BDEV_MAJOR 7 extern struct cdevsw mcd_cdevsw; -struct bdevsw mcd_bdevsw = +static struct bdevsw mcd_bdevsw = { mcdopen, mcdclose, mcdstrategy, mcdioctl, /*7*/ nxdump, mcdsize, 0, "mcd", &mcd_cdevsw, -1 }; -struct cdevsw mcd_cdevsw = +static struct cdevsw mcd_cdevsw = { mcdopen, mcdclose, rawread, nowrite, /*29*/ mcdioctl, nostop, nullreset, nodevtotty, seltrue, nommap, mcdstrategy, "mcd", diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c index 96f62e5..2196a4c 100644 --- a/sys/dev/mse/mse.c +++ b/sys/dev/mse/mse.c @@ -11,7 +11,7 @@ * this software for any purpose. It is provided "as is" * without express or implied warranty. * - * $Id: mse.c,v 1.19 1995/12/06 23:42:53 bde Exp $ + * $Id: mse.c,v 1.20 1995/12/08 11:14:40 julian Exp $ */ /* * Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and @@ -79,7 +79,7 @@ static d_read_t mseread; static d_select_t mseselect; #define CDEV_MAJOR 27 -struct cdevsw mse_cdevsw = +static struct cdevsw mse_cdevsw = { mseopen, mseclose, mseread, nowrite, /*27*/ noioc, nostop, nullreset, nodevtotty,/* mse */ mseselect, nommap, NULL, "mse", NULL, -1 }; diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 83db4c6..206b38f 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -109,7 +109,7 @@ static d_stop_t rcstop; static d_ttycv_t rcdevtotty; #define CDEV_MAJOR 63 -struct cdevsw rc_cdevsw = +static struct cdevsw rc_cdevsw = { rcopen, rcclose, rcread, rcwrite, /*63*/ rcioctl, rcstop, nxreset, rcdevtotty,/* rc */ ttselect, nommap, NULL, "rc", NULL, -1 }; diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index a111bba..4768a44 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -41,7 +41,7 @@ */ -/* $Id: scd.c,v 1.12 1995/11/29 14:39:53 julian Exp $ */ +/* $Id: scd.c,v 1.13 1995/12/08 11:15:01 julian Exp $ */ /* Please send any comments to micke@dynas.se */ @@ -199,11 +199,11 @@ static d_strategy_t scdstrategy; #define CDEV_MAJOR 45 #define BDEV_MAJOR 16 extern struct cdevsw scd_cdevsw; -struct bdevsw scd_bdevsw = +static struct bdevsw scd_bdevsw = { scdopen, scdclose, scdstrategy, scdioctl, /*16*/ nxdump, scdsize, 0, "scd", &scd_cdevsw, -1 }; -struct cdevsw scd_cdevsw = +static struct cdevsw scd_cdevsw = { scdopen, scdclose, rawread, nowrite, /*45*/ scdioctl, nostop, nullreset, nodevtotty,/* sony cd */ seltrue, nommap, scdstrategy, "scd", diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index cc1d6a7..1e930c3 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $Id: si.c,v 1.22 1995/12/07 12:46:06 davidg Exp $ + * $Id: si.c,v 1.23 1995/12/08 11:15:05 julian Exp $ */ #ifndef lint @@ -122,7 +122,7 @@ static d_stop_t sistop; static d_ttycv_t sidevtotty; #define CDEV_MAJOR 68 -struct cdevsw si_cdevsw = +static struct cdevsw si_cdevsw = { siopen, siclose, siread, siwrite, /*68*/ siioctl, sistop, nxreset, sidevtotty,/* si */ ttselect, nxmmap, NULL, "si", NULL, -1 }; diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index d44d7bc..61cd485 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.124 1995/12/06 23:43:07 bde Exp $ + * $Id: sio.c,v 1.125 1995/12/08 11:15:12 julian Exp $ */ #include "sio.h" @@ -311,7 +311,7 @@ static d_stop_t siostop; static d_ttycv_t siodevtotty; #define CDEV_MAJOR 28 -struct cdevsw sio_cdevsw = +static struct cdevsw sio_cdevsw = { sioopen, sioclose, sioread, siowrite, /*28*/ sioioctl, siostop, nxreset, siodevtotty,/* sio */ ttselect, nommap, NULL, driver_name, NULL, -1 }; diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 27ffe9f..8f6a33e 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -44,7 +44,7 @@ static d_ioctl_t snpioctl; static d_select_t snpselect; #define CDEV_MAJOR 53 -struct cdevsw snp_cdevsw = +static struct cdevsw snp_cdevsw = { snpopen, snpclose, snpread, snpwrite, /*53*/ snpioctl, nostop, nullreset, nodevtotty,/* snoop */ snpselect, nommap, NULL, "snp", NULL, -1 }; diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c index 160c18b..07cdb72 100644 --- a/sys/dev/speaker/spkr.c +++ b/sys/dev/speaker/spkr.c @@ -4,7 +4,7 @@ * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su> * - * $Id: spkr.c,v 1.20 1995/11/29 14:39:59 julian Exp $ + * $Id: spkr.c,v 1.21 1995/12/08 11:15:21 julian Exp $ */ #include "speaker.h" @@ -37,7 +37,7 @@ static d_write_t spkrwrite; static d_ioctl_t spkrioctl; #define CDEV_MAJOR 26 -struct cdevsw spkr_cdevsw = +static struct cdevsw spkr_cdevsw = { spkropen, spkrclose, noread, spkrwrite, /*26*/ spkrioctl, nostop, nullreset, nodevtotty,/* spkr */ seltrue, nommap, NULL, "spkr", NULL, -1 }; diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c index 68ba760..54510e3 100644 --- a/sys/dev/vn/vn.c +++ b/sys/dev/vn/vn.c @@ -102,11 +102,11 @@ static d_strategy_t vnstrategy; #define CDEV_MAJOR 43 #define BDEV_MAJOR 15 extern struct cdevsw vn_cdevsw; -struct bdevsw vn_bdevsw = +static struct bdevsw vn_bdevsw = { vnopen, vnclose, vnstrategy, vnioctl, /*15*/ vndump, vnsize, 0, "vn", &vn_cdevsw, -1 }; -struct cdevsw vn_cdevsw = +static struct cdevsw vn_cdevsw = { vnopen, vnclose, rawread, rawwrite, /*43*/ vnioctl, nostop, nullreset, nodevtotty,/* vn */ seltrue, nommap, vnstrategy, "vn", |