From 6c14d8e1e74a24fd6c9ab7e8c62b3e8e12e76e7f Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 14 Jul 1987 13:05:51 +0000 Subject: clean up timer processing --- server/timer.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'server/timer.c') diff --git a/server/timer.c b/server/timer.c index 45a3734..5f3db4c 100644 --- a/server/timer.c +++ b/server/timer.c @@ -236,19 +236,15 @@ timer_process() * This one goes off NOW.. * Enqueue the function, and delete the timer. */ - register timer s; valid = 1; - queue_arg = ALARM_ARG(t); queue = ALARM_FUNC(t); - s = t; - t = ALARM_PREV(t); - xremque(s); - ALARM_PREV(s) = NULL; - ALARM_NEXT(s) = NULL; - ALARM_FUNC(s) = timer_botch; - xfree(s); - t = ALARM_NEXT(t); + xremque(t); + ALARM_PREV(t) = NULL; + ALARM_NEXT(t) = NULL; + ALARM_FUNC(t) = timer_botch; + ALARM_ARG(t) = (caddr_t) NULL; + xfree(t); } /* note that in the case that there are no timers, the ALARM_TIME is set to 0L, which is what the main loop expects as the -- cgit v1.2.3