From c68d04feb7fca7f45eb30c286812092653e24ca1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 17 Sep 1999 16:59:43 +0000 Subject: Update. 1999-09-17 Andreas Jaeger * sysdeps/i386/Makefile (CFLAGS-initfini.s): Add also -mcpu=i386 to override user settings. 1999-09-17 Andreas Schwab * sysdeps/unix/sysv/linux/semctl.c: Copy the argument instead of using a pointer to it. --- sysdeps/unix/sysv/linux/semctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdeps/unix/sysv/linux/semctl.c') 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); } -- cgit v1.2.3