From: Rich Felker Date: Mon, 14 Feb 2011 04:26:51 +0000 (-0500) Subject: fixed missing cast in the non-i386 version of shmat (preparation for ports) X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=a130d33cad10546dd6b9bc2be71b0e3f5b0cf06b;hp=f9d880d25893dbf4caaa2f4e0c4d9bc8c1aea22a fixed missing cast in the non-i386 version of shmat (preparation for ports) --- 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)