Module Name:    src
Committed By:   pooka
Date:           Mon Apr 26 09:47:46 UTC 2010

Modified Files:
        src/sys/rump/dev/lib/librnd: component.c

Log Message:
ungrossify


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/rump/dev/lib/librnd/component.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/dev/lib/librnd/component.c
diff -u src/sys/rump/dev/lib/librnd/component.c:1.3 src/sys/rump/dev/lib/librnd/component.c:1.4
--- src/sys/rump/dev/lib/librnd/component.c:1.3	Mon Mar  1 13:12:20 2010
+++ src/sys/rump/dev/lib/librnd/component.c	Mon Apr 26 09:47:46 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: component.c,v 1.3 2010/03/01 13:12:20 pooka Exp $	*/
+/*	$NetBSD: component.c,v 1.4 2010/04/26 09:47:46 pooka Exp $	*/
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.3 2010/03/01 13:12:20 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.4 2010/04/26 09:47:46 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -53,12 +53,11 @@
 	    &rnd_cdevsw, &cmaj)) != 0)
 		panic("cannot attach rnd: %d", error);
 
-	/* XXX: truly hideous interface abuse */
-	if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/random", 0,
-	    cmaj, RND_DEV_RANDOM, 1)) != 0)
+	if ((error = rump_vfs_makeonedevnode(S_IFCHR, "/dev/random",
+	    cmaj, RND_DEV_RANDOM)) != 0)
 		panic("cannot create /dev/random: %d", error);
-	if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/urandom", 0,
-	    cmaj, RND_DEV_URANDOM, 1)) != 0)
+	if ((error = rump_vfs_makeonedevnode(S_IFCHR, "/dev/urandom",
+	    cmaj, RND_DEV_URANDOM)) != 0)
 		panic("cannot create /dev/urandom: %d", error);
 
 	rump_pdev_add(rndattach, 4);

Reply via email to