From 66503f5c5ff07ae8bfa73a977a26d65fc8144ae1 Mon Sep 17 00:00:00 2001 From: krw Date: Mon, 13 Jan 2014 21:04:19 +0000 Subject: [PATCH] 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(-) 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); } -- 2.20.1