Author: eadler
Date: Wed Apr 30 06:30:37 2014
New Revision: 265134
URL: http://svnweb.freebsd.org/changeset/base/265134

Log:
  null.c: fix ordering
  
  Use a consistent ordering of full -> null -> zero (alphabetical) in null.c
  
  Reported by:  mjg

Modified:
  head/sys/dev/null/null.c

Modified: head/sys/dev/null/null.c
==============================================================================
--- head/sys/dev/null/null.c    Wed Apr 30 06:27:23 2014        (r265133)
+++ head/sys/dev/null/null.c    Wed Apr 30 06:30:37 2014        (r265134)
@@ -46,9 +46,9 @@ __FBSDID("$FreeBSD$");
 #include <machine/vmparam.h>
 
 /* For use with destroy_dev(9). */
+static struct cdev *full_dev;
 static struct cdev *null_dev;
 static struct cdev *zero_dev;
-static struct cdev *full_dev;
 
 static d_write_t full_write;
 static d_write_t null_write;
@@ -56,6 +56,14 @@ static d_ioctl_t null_ioctl;
 static d_ioctl_t zero_ioctl;
 static d_read_t zero_read;
 
+static struct cdevsw full_cdevsw = {
+       .d_version =    D_VERSION,
+       .d_read =       zero_read,
+       .d_write =      full_write,
+       .d_ioctl =      zero_ioctl,
+       .d_name =       "full",
+};
+
 static struct cdevsw null_cdevsw = {
        .d_version =    D_VERSION,
        .d_read =       (d_read_t *)nullop,
@@ -73,13 +81,6 @@ static struct cdevsw zero_cdevsw = {
        .d_flags =      D_MMAP_ANON,
 };
 
-static struct cdevsw full_cdevsw = {
-       .d_version =    D_VERSION,
-       .d_read =       zero_read,
-       .d_write =      full_write,
-       .d_ioctl =      zero_ioctl,
-       .d_name =       "full",
-};
 
 
 /* ARGSUSED */
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to