summaryrefslogtreecommitdiff
path: root/server/timer.c
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1994-03-15 07:47:32 +0000
committerGravatar Richard Basch <probe@mit.edu>1994-03-15 07:47:32 +0000
commit199292cfecb3c673e79c715aba2d1b1dd890a647 (patch)
treec20a93c4b242e347d9a210f66b3c97b56d7ea1ec /server/timer.c
parente34d883df855de337fc090c5adcaeb6f0fd9585f (diff)
Use NOW rather than t_local.tv_sec
Diffstat (limited to 'server/timer.c')
-rw-r--r--server/timer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/timer.c b/server/timer.c
index a69e1b2..c671c8b 100644
--- a/server/timer.c
+++ b/server/timer.c
@@ -68,7 +68,6 @@ long nexttimo = 0L; /* the Unix time of the next
alarm */
static timer timers = NULL;
static long right_now;
-struct timeval t_local;
#ifdef __STDC__
# define P(s) s
@@ -99,7 +98,7 @@ timer timer_set_rel (time_rel, proc, arg)
void *arg;
{
timer new_t;
- right_now = t_local.tv_sec;
+ right_now = NOW;
new_t = (timer) xmalloc(TIMER_SIZE);
if (new_t == NULL) return(NULL);
ALARM_TIME(new_t) = time_rel + right_now;
@@ -246,7 +245,7 @@ timer_process()
void * queue_arg;
int valid = 0;
- right_now = t_local.tv_sec;
+ right_now = NOW;
t=ALARM_NEXT(timers);
/* 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