about summary refs log tree commit diff
path: root/src/ipc/shmat.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-13 23:26:51 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-13 23:26:51 -0500
commita130d33cad10546dd6b9bc2be71b0e3f5b0cf06b (patch)
tree13bb2bc1fcb8e280da06d33ab96ce35256ae1ccb /src/ipc/shmat.c
parentf9d880d25893dbf4caaa2f4e0c4d9bc8c1aea22a (diff)
downloadmusl-a130d33cad10546dd6b9bc2be71b0e3f5b0cf06b.tar.gz
musl-a130d33cad10546dd6b9bc2be71b0e3f5b0cf06b.tar.xz
musl-a130d33cad10546dd6b9bc2be71b0e3f5b0cf06b.zip
fixed missing cast in the non-i386 version of shmat (preparation for ports)
Diffstat (limited to 'src/ipc/shmat.c')
-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)