diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-03-29 22:43:13 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-03-29 22:43:13 -0400 |
commit | 680630011d38eb9f96f92b2f080cc60f38f6df21 (patch) | |
tree | 4bf5979dc62f53126940caec7d9c44609a6d0ccc /src/time/timer_delete.c | |
parent | 1c1aa32eea467b2ed43b457b5528713933b32e95 (diff) | |
download | musl-680630011d38eb9f96f92b2f080cc60f38f6df21.tar.gz |
reorder timer initialization so that timer_create does not depend on free
this allows small programs which only create times, but never delete
them, to use simple_malloc instead of the full malloc.
Diffstat (limited to 'src/time/timer_delete.c')
-rw-r--r-- | src/time/timer_delete.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/timer_delete.c b/src/time/timer_delete.c index d7c7670f..caf04895 100644 --- a/src/time/timer_delete.c +++ b/src/time/timer_delete.c @@ -5,7 +5,7 @@ int timer_delete(timer_t t) { if (t->thread) pthread_cancel(t->thread); else { - if (t->timerid >= 0) __syscall(SYS_timer_delete, t->timerid); + __syscall(SYS_timer_delete, t->timerid); free(t); } return 0; |