aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/i386/Makefile2
-rw-r--r--sysdeps/unix/sysv/linux/semctl.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile
index 1d62d10d8a..3e1642232a 100644
--- a/sysdeps/i386/Makefile
+++ b/sysdeps/i386/Makefile
@@ -8,7 +8,7 @@ long-double-fcts = yes
ifeq ($(subdir),csu)
# On i686 we must avoid generating the trampoline functions generated
# to get the GOT pointer.
-CFLAGS-initfini.s += -march=i386
+CFLAGS-initfini.s += -march=i386 -mcpu=i386
endif
ifeq ($(subdir),db2)
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);
}