diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/semctl.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/semctl.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sysdeps/unix/sysv/linux/semctl.c b/sysdeps/unix/sysv/linux/semctl.c index e794a584ef..81a33a9fe9 100644 --- a/sysdeps/unix/sysv/linux/semctl.c +++ b/sysdeps/unix/sysv/linux/semctl.c @@ -65,8 +65,6 @@ __old_semctl (int semid, int semnum, int cmd, ...) union semun arg; va_list ap; - va_start (ap, cmd); - /* Get the argument only if required. */ arg.buf = NULL; switch (cmd) @@ -85,8 +83,6 @@ __old_semctl (int semid, int semnum, int cmd, ...) break; } - va_end (ap); - return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd, &arg); } @@ -99,8 +95,6 @@ __new_semctl (int semid, int semnum, int cmd, ...) union semun arg; va_list ap; - va_start (ap, cmd); - /* Get the argument only if required. */ arg.buf = NULL; switch (cmd) @@ -119,8 +113,6 @@ __new_semctl (int semid, int semnum, int cmd, ...) break; } - va_end (ap); - return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd | __IPC_64, &arg); } |