summaryrefslogtreecommitdiff
path: root/src/time/timer_delete.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-29 22:43:13 -0400
committerRich Felker <dalias@aerifal.cx>2011-03-29 22:43:13 -0400
commit680630011d38eb9f96f92b2f080cc60f38f6df21 (patch)
tree4bf5979dc62f53126940caec7d9c44609a6d0ccc /src/time/timer_delete.c
parent1c1aa32eea467b2ed43b457b5528713933b32e95 (diff)
downloadmusl-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.c2
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;