Since the return value of read_client_conf() is not checked, don't
authorkrw <krw@openbsd.org>
Sun, 12 Jan 2014 04:17:36 +0000 (04:17 +0000)
committerkrw <krw@openbsd.org>
Sun, 12 Jan 2014 04:17:36 +0000 (04:17 +0000)
bother returning one.

sbin/dhclient/clparse.c
sbin/dhclient/dhcpd.h

index 35c90a4..3cbad84 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: clparse.c,v 1.67 2014/01/10 01:25:03 krw Exp $        */
+/*     $OpenBSD: clparse.c,v 1.68 2014/01/12 04:17:36 krw Exp $        */
 
 /* Parser for dhclient config and lease files. */
 
@@ -58,7 +58,7 @@ void parse_reject_statement(FILE *);
  *                      | client-declaration
  *                      | client-declarations client-declaration
  */
-int
+void
 read_client_conf(void)
 {
        FILE *cfile;
@@ -103,8 +103,6 @@ read_client_conf(void)
                token = next_token(NULL, cfile); /* Clear the peek buffer */
                fclose(cfile);
        }
-
-       return (!warnings_occurred);
 }
 
 /*
index ef7d992..bf64a33 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: dhcpd.h,v 1.128 2013/12/30 03:36:17 krw Exp $ */
+/*     $OpenBSD: dhcpd.h,v 1.129 2014/01/12 04:17:36 krw Exp $ */
 
 /*
  * Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
@@ -293,7 +293,7 @@ u_int32_t checksum(unsigned char *, unsigned, u_int32_t);
 u_int32_t wrapsum(u_int32_t);
 
 /* clparse.c */
-int read_client_conf(void);
+void read_client_conf(void);
 void read_client_leases(void);
 
 /* kroute.c */