fix indention with spaces in powerpc asm
[oweals/musl.git] / src / time / timer_settime.c
index d109570b3fe660cf193b8b6ae4e180714f391164..baf5076b6c3f979aa18b00468f896ef766f57a07 100644 (file)
@@ -1,7 +1,8 @@
 #include <time.h>
 #include "pthread_impl.h"
 
-int timer_settime(timer_t t, int flags, const struct itimerspec *val, struct itimerspec *old)
+int timer_settime(timer_t t, int flags, const struct itimerspec *restrict val, struct itimerspec *restrict old)
 {
-       return syscall(SYS_timer_settime, t->timerid, flags, val, old);
+       if ((uintptr_t)t >= 0x100000) t = ((pthread_t)t)->result;
+       return syscall(SYS_timer_settime, (long)t, flags, val, old);
 }