From 03a2f3e48caec15b1a9cebccc85328e9b8169df0 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 15 Feb 2011 04:40:40 -0500 Subject: cleanup socketcall syscall interface to ease porting to sane(r) archs --- src/network/socketpair.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/network/socketpair.c') 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); } -- cgit v1.2.1