From: Ulrich Drepper Date: Fri, 17 Sep 1999 15:37:19 +0000 (+0000) Subject: Copy the argument instead of using a pointer to it. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c88a6635f6b233d25f218af4fbf8cf7b42296c5;p=thirdparty%2Fglibc.git Copy the argument instead of using a pointer to it. --- diff --git a/sysdeps/unix/sysv/linux/semctl.c b/sysdeps/unix/sysv/linux/semctl.c index 4bc63bd71c3..7a29d7c1098 100644 --- a/sysdeps/unix/sysv/linux/semctl.c +++ b/sysdeps/unix/sysv/linux/semctl.c @@ -40,15 +40,15 @@ union semun int semctl (int semid, int semnum, int cmd, ...) { - union semun *arg; + union semun arg; va_list ap; va_start (ap, cmd); - /* Get a pointer the argument. */ - arg = &va_arg (ap, union semun); + /* Get the argument. */ + arg = va_arg (ap, union semun); va_end (ap); - return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd, arg); + return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd, &arg); }