diff options
author | John Kohl <jtkohl@mit.edu> | 1987-07-14 13:05:51 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1987-07-14 13:05:51 +0000 |
commit | 6c14d8e1e74a24fd6c9ab7e8c62b3e8e12e76e7f (patch) | |
tree | f08bbc13d588cf4685977cfcb901f6074763605a /server | |
parent | a6f19c25906ff4f29734bb2040e051e93bc0b84f (diff) |
clean up timer processing
Diffstat (limited to 'server')
-rw-r--r-- | server/timer.c | 16 |
1 files changed, 6 insertions, 10 deletions
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 |