X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fnetwork%2Fsocket.c;h=4f1e86dbf16f9d0e124137eb3623baa5057af281;hp=afaeb411bab866ff4a9ceea00001c210d0e42c0a;hb=03a2f3e48caec15b1a9cebccc85328e9b8169df0;hpb=cfe373146d232d7c89a60920f77b9451bcfee96b diff --git a/src/network/socket.c b/src/network/socket.c index afaeb411..4f1e86db 100644 --- a/src/network/socket.c +++ b/src/network/socket.c @@ -1,9 +1,7 @@ #include #include "syscall.h" -#include "socketcall.h" int socket(int domain, int type, int protocol) { - unsigned long args[] = { domain, type, protocol }; - return syscall2(__NR_socketcall, SYS_SOCKET, (long)args); + return socketcall(socket, domain, type, protocol, 0, 0, 0); }