Module Name:    src
Committed By:   pgoyette
Date:           Tue Dec  1 00:25:58 UTC 2015

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

Log Message:
Only cast to (void) if the type is NOERR


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 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.160 src/sys/kern/makesyscalls.sh:1.161
--- src/sys/kern/makesyscalls.sh:1.160	Mon Nov 30 23:27:27 2015
+++ src/sys/kern/makesyscalls.sh	Tue Dec  1 00:25:58 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: makesyscalls.sh,v 1.160 2015/11/30 23:27:27 pgoyette Exp $
+#	$NetBSD: makesyscalls.sh,v 1.161 2015/12/01 00:25:58 pgoyette Exp $
 #
 # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
 # All rights reserved.
@@ -985,7 +985,9 @@ function putent(type, compatwrap) {
 	printf("\t") > rumpcalls
 	if (returntype != "void" && type != "NOERR")
 		printf("error = ") > rumpcalls
-	printf("(void)rsys_syscall(%s%s%s, " \
+	else if (returntype != "void")
+		printf("(void)") > rumpcalls
+	printf("rsys_syscall(%s%s%s, " \
 	    "%s, %s, retval);\n", constprefix, compatwrap_, funcalias, \
 	    argarg, argsize) > rumpcalls
 	if (type != "NOERR") {

Reply via email to