Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2003 11:19:45 -0800 (PST)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 42015 for review
Message-ID:  <200311111919.hABJJjR8076012@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=42015

Change 42015 by sam@sam_ebb on 2003/11/11 11:19:11

	replace fixed major number by auto selection

Affected files ...

.. //depot/projects/netperf/sys/dev/kttcp/kttcp.c#2 edit

Differences ...

==== //depot/projects/netperf/sys/dev/kttcp/kttcp.c#2 (text+ko) ====

@@ -104,8 +104,6 @@
 static int kttcp_soreceive(struct socket *, unsigned long long,
 			   unsigned long long *, struct thread *, int *);
 
-#define	CDEV_MAJOR	200		/* netbsd uses 43 which vn */
-
 static d_open_t		kttcpopen;
 static d_ioctl_t	kttcpioctl;
 
@@ -113,7 +111,7 @@
 	.d_open =	kttcpopen,
 	.d_ioctl =	kttcpioctl,
 	.d_name =	"kttcp",
-	.d_maj =	CDEV_MAJOR,
+	.d_maj =	MAJOR_AUTO,
 };
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311111919.hABJJjR8076012>