Explorar o código

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

Rich Felker %!s(int64=14) %!d(string=hai) anos
pai
achega
a130d33cad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/ipc/shmat.c

+ 1 - 1
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)