fixed missing cast in the non-i386 version of shmat (preparation for ports)
authorRich Felker <dalias@aerifal.cx>
Mon, 14 Feb 2011 04:26:51 +0000 (23:26 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 14 Feb 2011 04:26:51 +0000 (23:26 -0500)
src/ipc/shmat.c

index ff65b6a49c4a47129669e3f91bfeb67a0fd52de1..98a2cd4288b31964817000527e00c43c6ca43118 100644 (file)
@@ -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)