usr.sbin/dhcpd: fix -Wunused-but-set-variable warning

I think this should be fine as strtonum() will catch any errors.
 
M  usr.sbin/dhcpd/parse.c

diff 5ce17aab12dafb0a17452c4e0e86b29d89d83d13 
4bd575d8630c92f404211d2c625b200ac28213b9
blob - 5b719219d00046e02e932796a78dc14ceddaa109
blob + 28334a443547ac7de98e80b4ca493429bfd60b09
--- usr.sbin/dhcpd/parse.c
+++ usr.sbin/dhcpd/parse.c
@@ -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) {

-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to