global cleanup to use the new syscall interface
[musl] / src / time / clock_getres.c
index e86a1ee..36a0d69 100644 (file)
@@ -1,8 +1,7 @@
-#define SYSCALL_RETURN_ERRNO
 #include <time.h>
 #include "syscall.h"
 
 int clock_getres(clockid_t clk, struct timespec *ts)
 {
-       return syscall2(__NR_clock_getres, clk, (long)ts);
+       return syscall(SYS_clock_getres, clk, ts);
 }