diff options
Diffstat (limited to 'contrib/bind/lib/isc/ev_timers.c')
-rw-r--r-- | contrib/bind/lib/isc/ev_timers.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/contrib/bind/lib/isc/ev_timers.c b/contrib/bind/lib/isc/ev_timers.c index e5e5684..03436c6 100644 --- a/contrib/bind/lib/isc/ev_timers.c +++ b/contrib/bind/lib/isc/ev_timers.c @@ -20,7 +20,7 @@ */ #if !defined(LINT) && !defined(CODECENTER) -static const char rcsid[] = "$Id: ev_timers.c,v 1.30 2001/02/12 23:13:48 marka Exp $"; +static const char rcsid[] = "$Id: ev_timers.c,v 1.32 2001/11/01 05:35:47 marka Exp $"; #endif /* Import. */ @@ -201,7 +201,7 @@ evClearTimer(evContext opaqueCtx, evTimerID id) { } if (heap_element(ctx->timers, del->index) != del) - ERR(ENOENT); + EV_ERR(ENOENT); if (heap_delete(ctx->timers, del->index) < 0) return (-1); @@ -229,7 +229,7 @@ evResetTimer(evContext opaqueCtx, int result=0; if (heap_element(ctx->timers, timer->index) != timer) - ERR(ENOENT); + EV_ERR(ENOENT); old_due = timer->due; @@ -332,6 +332,9 @@ evTouchIdleTimer(evContext opaqueCtx, evTimerID id) { heap_context evCreateTimers(const evContext_p *ctx) { + + UNUSED(ctx); + return (heap_new(due_sooner, set_index, 2048)); } @@ -363,6 +366,9 @@ set_index(void *what, int index) { static void free_timer(void *what, void *uap) { evTimer *t = what; + + UNUSED(uap); + FREE(t); } @@ -388,6 +394,9 @@ idle_timeout(evContext opaqueCtx, evContext_p *ctx = opaqueCtx.opaque; idle_timer *this = uap; struct timespec idle; + + UNUSED(due); + UNUSED(inter); idle = evSubTime(ctx->lastEventTime, this->lastTouched); if (evCmpTime(idle, this->max_idle) >= 0) { |