diff options
-rw-r--r-- | src/ipc/shmat.c | 2 |
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) |