diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/init_module.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/init_module.c b/testsuite/init_module.c index f1e7f82..dad66e5 100644 --- a/testsuite/init_module.c +++ b/testsuite/init_module.c @@ -309,11 +309,12 @@ TS_EXPORT long int syscall(long int __sysno, ...) va_list ap; long ret; - switch (__sysno) { - case -1: - errno = -ENOSYS; + if (__sysno == -1) { + errno = ENOSYS; return -1; - case __NR_finit_module: { + } + + if (__sysno == __NR_finit_module) { const char *args; int flags; int fd; @@ -329,7 +330,6 @@ TS_EXPORT long int syscall(long int __sysno, ...) va_end(ap); return ret; } - } /* * FIXME: no way to call the libc function - let's hope there are no |