about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-04-29 17:07:03 +0000
committerJakub Jelinek <jakub@redhat.com>2008-04-29 17:07:03 +0000
commitd4e92d9e08762f4c5ae3d9fc8856f03672a28247 (patch)
treefef6982c731f58145fe2353544869ecaede2c63b /sysdeps/unix/sysv/linux
parent7eb5e6c9bdea71dc831862c5956d0bab08d92125 (diff)
downloadglibc-d4e92d9e08762f4c5ae3d9fc8856f03672a28247.tar.gz
glibc-d4e92d9e08762f4c5ae3d9fc8856f03672a28247.tar.xz
glibc-d4e92d9e08762f4c5ae3d9fc8856f03672a28247.zip
* sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
Pass "union semun" properly in to sys_ipc, it must be passed 
by value, not by reference.
2008-04-25  David S. Miller  <davem@davemloft.net>

	* sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
	Pass "union semun" properly in to sys_ipc, it must be passed
	by value, not by reference.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c b/sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c
index 057e287828..4f826b156d 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c
@@ -54,5 +54,5 @@ semctl (int semid, int semnum, int cmd, ...)
   va_end (ap);
 
   return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd,
-			 CHECK_SEMCTL (&arg, semid, cmd));
+			 CHECK_SEMCTL (&arg, semid, cmd)->array);
 }