From 680630011d38eb9f96f92b2f080cc60f38f6df21 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 29 Mar 2011 22:43:13 -0400 Subject: 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. --- src/time/timer_delete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/time/timer_delete.c') diff --git a/src/time/timer_delete.c b/src/time/timer_delete.c index d7c7670..caf0489 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; -- cgit v1.1