diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-01-13 21:04:20 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-01-13 21:04:20 +0000 |
commit | c4a54098c363761542037d0fe8c071db01154fb5 (patch) | |
tree | a8fe10683798db184c283f84f44f99eff0b54a6c /sbin/dhclient/clparse.c | |
parent | 6e64bc354bef61b859a8bd201591743d5fa9a41e (diff) |
No need to 'clear the peek buffer' when closing a file. The next
file opener will call new_parse() to initialize that amoung
other things. Nuke extraneous blank line in passing.
Diffstat (limited to 'sbin/dhclient/clparse.c')
-rw-r--r-- | sbin/dhclient/clparse.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index 3cbad840568..9373a61ca2a 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clparse.c,v 1.68 2014/01/12 04:17:36 krw Exp $ */ +/* $OpenBSD: clparse.c,v 1.69 2014/01/13 21:04:19 krw Exp $ */ /* Parser for dhclient config and lease files. */ @@ -100,7 +100,6 @@ read_client_conf(void) break; parse_client_statement(cfile); } while (1); - token = next_token(NULL, cfile); /* Clear the peek buffer */ fclose(cfile); } } @@ -131,7 +130,6 @@ read_client_leases(void) break; } parse_client_lease_statement(cfile, 0); - } while (1); fclose(cfile); } |