about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/ipc/shmat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc/shmat.c b/src/ipc/shmat.c
index ff65b6a4..98a2cd42 100644
--- a/src/ipc/shmat.c
+++ b/src/ipc/shmat.c
@@ -5,7 +5,7 @@
 #ifdef __NR_shmat
 void *shmat(int id, const void *addr, int flag)
 {
-	return syscall3(__NR_shmat, id, (long)addr, flag);
+	return (void *)syscall3(__NR_shmat, id, (long)addr, flag);
 }
 #else
 void *shmat(int id, const void *addr, int flag)