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