From: krw Date: Tue, 16 Mar 2021 20:21:54 +0000 (+0000) Subject: Nuke unused time_t variable. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0754256768df1418b66b117bb916b9757ed5156a;p=openbsd Nuke unused time_t variable. --- 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 @@ -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, >=))