Module Name: src
Committed By: joerg
Date: Fri Sep 21 16:38:55 UTC 2012
Modified Files:
src/sys/rump/librump/rumpvfs: devnodes.c
Log Message:
Don't use NODEV when comparing against a major number as this is an
impossible type mismatch.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/librump/rumpvfs/devnodes.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/librump/rumpvfs/devnodes.c
diff -u src/sys/rump/librump/rumpvfs/devnodes.c:1.6 src/sys/rump/librump/rumpvfs/devnodes.c:1.7
--- src/sys/rump/librump/rumpvfs/devnodes.c:1.6 Thu Feb 10 11:00:45 2011
+++ src/sys/rump/librump/rumpvfs/devnodes.c Fri Sep 21 16:38:54 2012
@@ -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 @@ makeonenode(char *buf, devmajor_t blk, d
/* 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 "