From 88c7b4129c1ad2ff620f0d4a4dd1d509376b1712 Mon Sep 17 00:00:00 2001 From: naddy Date: Sun, 16 Jan 2022 21:20:25 +0000 Subject: [PATCH] dhcpd: fix -Wunused-but-set-variable warning ok krw@ --- usr.sbin/dhcpd/parse.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/dhcpd/parse.c b/usr.sbin/dhcpd/parse.c index 5b719219d00..8f79ab38a56 100644 --- a/usr.sbin/dhcpd/parse.c +++ b/usr.sbin/dhcpd/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.27 2020/04/16 23:23:21 dtucker Exp $ */ +/* $OpenBSD: parse.c,v 1.28 2022/01/16 21:20:25 naddy Exp $ */ /* Common parser code for dhcpd and dhclient. */ @@ -293,9 +293,8 @@ parse_lease_time(FILE *cfile, time_t *timep) const char *errstr; char *val; uint32_t value; - int token; - token = next_token(&val, cfile); + next_token(&val, cfile); value = strtonum(val, 0, UINT32_MAX, &errstr); if (errstr) { -- 2.20.1