diff options
Diffstat (limited to 'src/network/getpeername.c')
-rw-r--r-- | src/network/getpeername.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/getpeername.c b/src/network/getpeername.c index 7ecbe375..22effdae 100644 --- a/src/network/getpeername.c +++ b/src/network/getpeername.c @@ -1,9 +1,7 @@ #include <sys/socket.h> #include "syscall.h" -#include "socketcall.h" int getpeername(int fd, struct sockaddr *addr, socklen_t *len) { - unsigned long args[] = { fd, (unsigned long)addr, (unsigned long)len }; - return syscall2(__NR_socketcall, SYS_GETPEERNAME, (long)args); + return socketcall(getpeername, fd, addr, len, 0, 0, 0); } |