1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
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.
This commit is contained in:
Ulrich Drepper
1999-09-17 16:59:43 +00:00
parent a40ef91fb5
commit c68d04feb7
3 changed files with 15 additions and 5 deletions

View File

@ -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);
}