Explorar el Código

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

Rich Felker hace 14 años
padre
commit
a130d33cad
Se han modificado 1 ficheros con 1 adiciones y 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)