summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2021-03-02 16:17:27 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2021-03-02 16:17:27 +0000
commit500e21e52dc81029cb9980c9b6c758a251ec5546 (patch)
tree915e9f5b2b017893e57307218fa0b6c16b8eb5e3 /sbin/dhclient
parent1434f531980881a1a3c4e680e0ae9dd1fcf64d1d (diff)
Rename local variable 'cur_time' in set_timeout() to 'now' like
all the other struct timespec variables holding the current time.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dispatch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c
index 1e6a570f90a..fe71398702d 100644
--- a/sbin/dhclient/dispatch.c
+++ b/sbin/dhclient/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.169 2021/02/27 13:59:00 krw Exp $ */
+/* $OpenBSD: dispatch.c,v 1.170 2021/03/02 16:17:26 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -303,12 +303,12 @@ void
set_timeout(struct interface_info *ifi, time_t secs,
void (*where)(struct interface_info *))
{
- struct timespec cur_time;
+ struct timespec now;
- clock_gettime(CLOCK_REALTIME, &cur_time);
+ clock_gettime(CLOCK_REALTIME, &now);
timespecclear(&ifi->timeout);
ifi->timeout.tv_sec = secs;
- timespecadd(&ifi->timeout, &cur_time, &ifi->timeout);
+ timespecadd(&ifi->timeout, &now, &ifi->timeout);
ifi->timeout_func = where;
}