fix signal-based timers with null sigevent argument
[musl] / src / time / timer_delete.c
1 #include <time.h>
2 #include "pthread_impl.h"
3
4 int timer_delete(timer_t t)
5 {
6         if ((uintptr_t)t >= 0x100000) return pthread_cancel(t);
7         return __syscall(SYS_timer_delete, (long)t);
8 }