From 11a0d6a799908af763648021e38789e2b4e99a3e Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 18 Nov 1999 08:36:42 +0000 Subject: Touch up the make_dev() usage to hopefully make it work and fix warnings. --- sys/i386/isa/if_cx.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/i386/isa/if_cx.c') diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c index 0983f1b..ac68d97 100644 --- a/sys/i386/isa/if_cx.c +++ b/sys/i386/isa/if_cx.c @@ -92,6 +92,8 @@ static void cxup (cx_chan_t *c); cx_board_t cxboard [NCX]; /* adapter state structures */ cx_chan_t *cxchan [NCX*NCHAN]; /* unit to channel struct pointer */ +extern struct cdevsw cx_cdevsw; + static unsigned short irq_valid_values [] = { 3, 5, 7, 10, 11, 12, 15, 0 }; static unsigned short drq_valid_values [] = { 5, 6, 7, 0 }; static unsigned short port_valid_values [] = { @@ -288,11 +290,7 @@ cxattach (struct isa_device *id) timeout (cxtimeout, 0, hz*5); printf ("cx%d: \n", unit, b->name); - { - extern struct cdevsw cx_cdevsw; - - make_dev(&cx_cdevsw, 0, 0, 0, 0600, "cx"); - } + make_dev(&cx_cdevsw, unit, UID_ROOT, GID_WHEEL, 0600, "cx%d", unit); return (1); } -- cgit v1.1