summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/semctl.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2015-07-07 12:51:17 +0200
committerAndreas Schwab <schwab@suse.de>2015-09-16 14:51:28 +0200
commit1f60740e5f03823a557d1543cf08880a11d719de (patch)
treecdc1890b87e37250014dc25e9b6e87503fa57b31 /sysdeps/unix/sysv/linux/semctl.c
parenta6d9312c4da740437752b8a73102bf3ca4e3bb3e (diff)
downloadglibc-1f60740e5f03823a557d1543cf08880a11d719de.tar.gz
glibc-1f60740e5f03823a557d1543cf08880a11d719de.tar.xz
glibc-1f60740e5f03823a557d1543cf08880a11d719de.zip
Remove extra va_start/va_end calls (bug 17244)
Diffstat (limited to 'sysdeps/unix/sysv/linux/semctl.c')
-rw-r--r--sysdeps/unix/sysv/linux/semctl.c8
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);
 }