summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2021-03-16 20:21:55 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2021-03-16 20:21:55 +0000
commit5e26c459549057cc418df046ec5316e68497c560 (patch)
tree6a3d77f2fe8438891bfe7828bacbd436075c1608 /sbin/dhclient/dhclient.c
parent07439b2b279871f1ad889453e3b009ecabbf123a (diff)
Nuke unused time_t variable.
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r--sbin/dhclient/dhclient.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 8ec981d57bd..be1a5c0d749 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.711 2021/03/11 15:30:49 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.712 2021/03/16 20:21:54 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -1497,15 +1497,12 @@ send_request(struct interface_info *ifi)
struct in_addr from;
struct timespec now;
ssize_t rslt;
- time_t cur_time, interval;
+ time_t cur_time;
cancel_timeout(ifi);
clock_gettime(CLOCK_REALTIME, &now);
cur_time = now.tv_sec;
- /* Figure out how long it's been since we started transmitting. */
- interval = cur_time - ifi->first_sending;
-
switch (ifi->state) {
case S_REBOOTING:
if (timespeccmp(&now, &ifi->reboot_timeout, >=))