X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fnetwork%2Fsocketpair.c;h=b15f8467c4f27b35a0496916fdd347345b2e01f9;hp=65a47fd974732e1ef536d0181fd195662c1dc6fb;hb=31a55f233b313030a787240b76c06f2d08cde29f;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/src/network/socketpair.c b/src/network/socketpair.c index 65a47fd9..b15f8467 100644 --- a/src/network/socketpair.c +++ b/src/network/socketpair.c @@ -1,9 +1,7 @@ #include #include "syscall.h" -#include "socketcall.h" int socketpair(int domain, int type, int protocol, int fd[2]) { - unsigned long args[] = { domain, type, protocol, (unsigned long)fd }; - return syscall2(__NR_socketcall, SYS_SOCKETPAIR, (long)args); + return socketcall(socketpair, domain, type, protocol, fd, 0, 0); }