about summary refs log tree commit diff
path: root/src/ipc/shmat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc/shmat.c')
-rw-r--r--src/ipc/shmat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipc/shmat.c b/src/ipc/shmat.c
index 98a2cd42..c6ee4007 100644
--- a/src/ipc/shmat.c
+++ b/src/ipc/shmat.c
@@ -5,13 +5,13 @@
 #ifdef __NR_shmat
 void *shmat(int id, const void *addr, int flag)
 {
-	return (void *)syscall3(__NR_shmat, id, (long)addr, flag);
+	return (void *)syscall(SYS_shmat, id, addr, flag);
 }
 #else
 void *shmat(int id, const void *addr, int flag)
 {
 	unsigned long ret;
-	ret = syscall5(__NR_ipc, IPCOP_shmat, id, flag, (long)&addr, (long)addr);
+	ret = syscall(SYS_ipc, IPCOP_shmat, id, flag, &addr, addr);
 	return (ret > -(unsigned long)SHMLBA) ? (void *)ret : (void *)addr;
 }
 #endif