Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpvfs Don't use NODEV when comparing agai...



details:   https://anonhg.NetBSD.org/src/rev/3e23d4d7b581
branches:  trunk
changeset: 781669:3e23d4d7b581
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Sep 21 16:38:54 2012 +0000

description:
Don't use NODEV when comparing against a major number as this is an
impossible type mismatch.

diffstat:

 sys/rump/librump/rumpvfs/devnodes.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 988fb5b08730 -r 3e23d4d7b581 sys/rump/librump/rumpvfs/devnodes.c
--- a/sys/rump/librump/rumpvfs/devnodes.c       Fri Sep 21 14:33:03 2012 +0000
+++ b/sys/rump/librump/rumpvfs/devnodes.c       Fri Sep 21 16:38:54 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: devnodes.c,v 1.6 2011/02/10 11:00:45 pooka Exp $       */
+/*     $NetBSD: devnodes.c,v 1.7 2012/09/21 16:38:54 joerg Exp $       */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: devnodes.c,v 1.6 2011/02/10 11:00:45 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: devnodes.c,v 1.7 2012/09/21 16:38:54 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -130,7 +130,7 @@
 
        /* block device */
        snprintf(buf, MAXPATHLEN, "/dev/%s%s%s", base, cstr1, cstr2);
-       if (blk != NODEV) {
+       if (blk != NODEVMAJOR) {
                switch (doesitexist(buf, true, blk, dmin)) {
                case DIFFERENT:
                        aprint_verbose("mkdevnodes: block device %s "



Home | Main Index | Thread Index | Old Index