artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c78769
)
dhcpd: fix -Wunused-but-set-variable warning
author
naddy
<naddy@openbsd.org>
Sun, 16 Jan 2022 21:20:25 +0000
(21:20 +0000)
committer
naddy
<naddy@openbsd.org>
Sun, 16 Jan 2022 21:20:25 +0000
(21:20 +0000)
ok krw@
usr.sbin/dhcpd/parse.c
patch
|
blob
|
history
diff --git
a/usr.sbin/dhcpd/parse.c
b/usr.sbin/dhcpd/parse.c
index
5b71921
..
8f79ab3
100644
(file)
--- a/
usr.sbin/dhcpd/parse.c
+++ b/
usr.sbin/dhcpd/parse.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: parse.c,v 1.2
7 2020/04/16 23:23:21 dtucker Exp $
*/
+/* $OpenBSD: parse.c,v 1.2
8 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) {