odhcpd: fix compilation with GCC10
[project/odhcpd.git] / src / odhcpd.c
index 4b8e5898d450bc661e0f4d29b48dfff1f35a101c..39e0e5137cf5514555f0ea98420d45bfe284b47d 100644 (file)
@@ -43,8 +43,6 @@
 #include <libubox/uloop.h>
 #include "odhcpd.h"
 
-
-
 static int ioctl_sock = -1;
 static int urandom_fd = -1;
 
@@ -440,7 +438,7 @@ int odhcpd_urandom(void *data, size_t len)
 time_t odhcpd_time(void)
 {
        struct timespec ts;
-       syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &ts);
+       clock_gettime(CLOCK_MONOTONIC, &ts);
        return ts.tv_sec;
 }