From a130d33cad10546dd6b9bc2be71b0e3f5b0cf06b Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 13 Feb 2011 23:26:51 -0500 Subject: [PATCH] fixed missing cast in the non-i386 version of shmat (preparation for ports) --- src/ipc/shmat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)