No need to 'clear the peek buffer' when closing a file. The next
authorkrw <krw@openbsd.org>
Mon, 13 Jan 2014 21:04:19 +0000 (21:04 +0000)
committerkrw <krw@openbsd.org>
Mon, 13 Jan 2014 21:04:19 +0000 (21:04 +0000)
file opener will call new_parse() to initialize that amoung
other things. Nuke extraneous blank line in passing.

sbin/dhclient/clparse.c

index 3cbad84..9373a61 100644 (file)
@@ -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);
 }