syscall overhaul part two - unify public and internal syscall interface
[musl] / src / time / time.c
index 3457dad..2d2cfd4 100644 (file)
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
 #include <time.h>
 #include <sys/time.h>
 #include "syscall.h"
@@ -6,7 +5,7 @@
 time_t time(time_t *t)
 {
        struct timeval tv;
-       syscall2(__NR_gettimeofday, (long)&tv, 0);
+       __syscall(__NR_gettimeofday, &tv, 0);
        if (t) *t = tv.tv_sec;
        return tv.tv_sec;
 }