aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-17 16:59:43 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-17 16:59:43 +0000
commitc68d04feb7fca7f45eb30c286812092653e24ca1 (patch)
treebd653acf8410ca26d81efb5a09c38320c20cc8e1 /sysdeps/unix/sysv/linux/semctl.c
parentUpdate. (diff)
downloadglibc-c68d04feb7fca7f45eb30c286812092653e24ca1.tar.gz
glibc-c68d04feb7fca7f45eb30c286812092653e24ca1.tar.bz2
glibc-c68d04feb7fca7f45eb30c286812092653e24ca1.zip
Update.
1999-09-17 Andreas Jaeger <aj@suse.de> * sysdeps/i386/Makefile (CFLAGS-initfini.s): Add also -mcpu=i386 to override user settings. 1999-09-17 Andreas Schwab <schwab@suse.de> * sysdeps/unix/sysv/linux/semctl.c: Copy the argument instead of using a pointer to it.
Diffstat (limited to 'sysdeps/unix/sysv/linux/semctl.c')
-rw-r--r--sysdeps/unix/sysv/linux/semctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/semctl.c b/sysdeps/unix/sysv/linux/semctl.c
index 4bc63bd71c..7a29d7c109 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);
}