From: Jorrit Herder Date: Fri, 1 Jul 2005 17:17:13 +0000 (+0000) Subject: Fix stupid assumption that caused headache. X-Git-Tag: v3.1.0~659 X-Git-Url: http://zhaoyanbai.com/repos/named-checkzone.html?a=commitdiff_plain;h=7f2e7461e6b5338db833f39978a1277d171f326e;p=minix.git Fix stupid assumption that caused headache. Timers lib now seems to work fine again. --- diff --git a/lib/timers/tmrs_set.c b/lib/timers/tmrs_set.c index 79785b0be..71e56a9f5 100644 --- a/lib/timers/tmrs_set.c +++ b/lib/timers/tmrs_set.c @@ -21,9 +21,8 @@ clock_t *new_head; /* new earliest timer, if non NULL */ if(*tmrs) old_head = (*tmrs)->tmr_exp_time; - /* Possibly remove an old timer. Then set the timer's variables. */ - if (tp->tmr_exp_time != TMR_NEVER) - (void) tmrs_clrtimer(tmrs, tp, NULL); + /* Set the timer's variables. */ + (void) tmrs_clrtimer(tmrs, tp, NULL); tp->tmr_exp_time = exp_time; tp->tmr_func = watchdog;