about summary refs log tree commit diff
path: root/src/network/getsockopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/getsockopt.c')
-rw-r--r--src/network/getsockopt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/network/getsockopt.c b/src/network/getsockopt.c
index 8c818863..a9e0a72d 100644
--- a/src/network/getsockopt.c
+++ b/src/network/getsockopt.c
@@ -1,13 +1,7 @@
 #include <sys/socket.h>
 #include "syscall.h"
-#include "socketcall.h"
 
 int getsockopt(int fd, int level, int optname, void *optval, socklen_t *optlen)
 {
-	unsigned long args[] = {
-		fd, level, optname,
-		(unsigned long)optval,
-		(unsigned long)optlen
-	};
-	return syscall2(__NR_socketcall, SYS_GETSOCKOPT, (long)args);
+	return socketcall(getsockopt, fd, level, optname, optval, optlen, 0);
 }