diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-13 23:26:51 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-13 23:26:51 -0500 |
commit | a130d33cad10546dd6b9bc2be71b0e3f5b0cf06b (patch) | |
tree | 13bb2bc1fcb8e280da06d33ab96ce35256ae1ccb /src/ipc/shmat.c | |
parent | f9d880d25893dbf4caaa2f4e0c4d9bc8c1aea22a (diff) | |
download | musl-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.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) |