From a1b221af52c331bd82cf390d2305be1bcd220585 Mon Sep 17 00:00:00 2001 From: mux Date: Fri, 28 Feb 2003 18:04:42 +0000 Subject: Make the network /dev entries use MAJOR_AUTO. --- sys/net/if.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/net') diff --git a/sys/net/if.c b/sys/net/if.c index 599d069..cdf5fd3 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -125,8 +125,6 @@ MALLOC_DEFINE(M_IFADDR, "ifaddr", "interface address"); MALLOC_DEFINE(M_IFMADDR, "ether_multi", "link-level multicast address"); MALLOC_DEFINE(M_CLONE, "clone", "interface cloning framework"); -#define CDEV_MAJOR 165 - static d_open_t netopen; static d_close_t netclose; static d_ioctl_t netioctl; @@ -142,7 +140,7 @@ static struct cdevsw net_cdevsw = { /* mmap */ nommap, /* strategy */ nostrategy, /* name */ "net", - /* maj */ CDEV_MAJOR, + /* maj */ MAJOR_AUTO, /* dump */ nodump, /* psize */ nopsize, /* flags */ D_KQFILTER, -- cgit v1.1