From c4a54098c363761542037d0fe8c071db01154fb5 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Mon, 13 Jan 2014 21:04:20 +0000 Subject: 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. --- sbin/dhclient/clparse.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sbin/dhclient/clparse.c') 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); } -- cgit v1.2.3