Module Name:    src
Committed By:   justin
Date:           Sun May 18 21:25:44 UTC 2014

Modified Files:
        src/sys/kern: makesyscalls.sh

Log Message:
Fix prototype of last arg of rump_sys_mknod to dev_t not uint32_t

Discussed with pooka@
See also https://github.com/rumpkernel/buildrump.sh/issues/53


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/sys/kern/makesyscalls.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/makesyscalls.sh
diff -u src/sys/kern/makesyscalls.sh:1.142 src/sys/kern/makesyscalls.sh:1.143
--- src/sys/kern/makesyscalls.sh:1.142	Sun Apr 27 14:50:23 2014
+++ src/sys/kern/makesyscalls.sh	Sun May 18 21:25:44 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: makesyscalls.sh,v 1.142 2014/04/27 14:50:23 pooka Exp $
+#	$NetBSD: makesyscalls.sh,v 1.143 2014/05/18 21:25:44 justin Exp $
 #
 # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
 # All rights reserved.
@@ -609,7 +609,9 @@ function printproto(wrap) {
 	# occurence for the default __RENAME()
 	seen = funcseen[fbase]
 	funcseen[fbase] = rumpfname
-	if (seen)
+	# special case for mknod as type of last argument changed from
+	# uint32_t to dev_t
+	if ((seen && fbase != "mknod") || (!seen && fbase == "mknod"))
 		return
 
 	printf("%s rump_sys_%s(", returntype, realname) > rumpprotos

Reply via email to