From dbad586d19d40f392e3baaaa99421fdb15579353 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sun, 12 Jan 2014 04:17:37 +0000 Subject: Since the return value of read_client_conf() is not checked, don't bother returning one. --- sbin/dhclient/clparse.c | 6 ++---- sbin/dhclient/dhcpd.h | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'sbin') diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index 35c90a4c016..3cbad840568 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -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); } /* diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index ef7d992f395..bf64a3399a6 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -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 @@ -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 */ -- cgit v1.2.3