1
0
Fork 0
mirror of git://git.musl-libc.org/musl synced 2025-03-06 20:48:29 +01:00

fixed missing cast in the non-i386 version of shmat (preparation for ports)

This commit is contained in:
Rich Felker 2011-02-13 23:26:51 -05:00
parent f9d880d258
commit a130d33cad

View 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)