Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Only cast to (void) if the type is NOERR



details:   https://anonhg.NetBSD.org/src/rev/5988f072d7e8
branches:  trunk
changeset: 341956:5988f072d7e8
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Dec 01 00:25:58 2015 +0000

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

diffstat:

 sys/kern/makesyscalls.sh |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r c91a55c888be -r 5988f072d7e8 sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh  Mon Nov 30 23:37:56 2015 +0000
+++ b/sys/kern/makesyscalls.sh  Tue Dec 01 00:25:58 2015 +0000
@@ -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 @@
        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") {



Home | Main Index | Thread Index | Old Index