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 ff65b6a..98a2cd4 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)