summaryrefslogtreecommitdiff
path: root/src/network/getsockname.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/getsockname.c')
-rw-r--r--src/network/getsockname.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/getsockname.c b/src/network/getsockname.c
index 4b1002f8..271e3b41 100644
--- a/src/network/getsockname.c
+++ b/src/network/getsockname.c
@@ -1,9 +1,7 @@
#include <sys/socket.h>
#include "syscall.h"
-#include "socketcall.h"
int getsockname(int fd, struct sockaddr *addr, socklen_t *len)
{
- unsigned long args[] = { fd, (unsigned long)addr, (unsigned long)len };
- return syscall2(__NR_socketcall, SYS_GETSOCKNAME, (long)args);
+ return socketcall(getsockname, fd, addr, len, 0, 0, 0);
}