Pārlūkot izejas kodu

Yipe. As Joseph Chiu noticed, sockvec is supposed to be an int*
not an int.

Eric Andersen 23 gadi atpakaļ
vecāks
revīzija
ada0e0b37f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      libc/inet/socketcalls.c

+ 1 - 1
libc/inet/socketcalls.c

@@ -324,7 +324,7 @@ int socket(int family, int type, int protocol)
 
 #ifdef L_socketpair
 #ifdef __NR_socketpair
-_syscall4(int, socketpair, int, family, int, type, int, protocol, int, sockvec[2]);
+_syscall4(int, socketpair, int, family, int, type, int, protocol, int *, sockvec);
 #else
 int socketpair(int family, int type, int protocol, int sockvec[2])
 {