OSDN Git Service

Yipe. As Joseph Chiu noticed, sockvec is supposed to be an int*
authorEric Andersen <andersen@codepoet.org>
Wed, 12 Jun 2002 02:24:38 +0000 (02:24 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 12 Jun 2002 02:24:38 +0000 (02:24 -0000)
not an int.

libc/inet/socketcalls.c

index eae330a..3701e6c 100644 (file)
@@ -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])
 {