From 7c88a6635f6b233d25f218af4fbf8cf7b42296c5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 17 Sep 1999 15:37:19 +0000 Subject: [PATCH] Copy the argument instead of using a pointer to it. --- sysdeps/unix/sysv/linux/semctl.c | 8 ++++---- 1 file 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); }