summaryrefslogtreecommitdiffstats
path: root/contrib/tcp_wrappers/clean_exit.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2017-01-09 20:14:02 +0000
committerdim <dim@FreeBSD.org>2017-01-09 20:14:02 +0000
commit6cb45500fc5412ac9eadd58d3d873bfbe8af8548 (patch)
tree1f0a38e105f6a26d5373c014e0479e5b9a2480e6 /contrib/tcp_wrappers/clean_exit.c
parenta77510b409c5ded1a4274ef75fbbf01fa765013b (diff)
downloadFreeBSD-src-6cb45500fc5412ac9eadd58d3d873bfbe8af8548.zip
FreeBSD-src-6cb45500fc5412ac9eadd58d3d873bfbe8af8548.tar.gz
MFC r257398 (by sbruno):
Quiesce warnings by updating headerfile includes r257404 | sbruno | 2013-10-30 23:41:18 +0100 (Wed, 30 Oct 2013) | 9 lines Quiesce two warnings: 1. define the CODE * as const 2. restructure function to eliminate warning about exiting with no return. severity_map() never returns when it can't find an appropriate sysylog facility, and it longjmp()'s away into error code handling. Keep this behavior by stashing the facility value found during our search and checking for -1 if found. MFC r257405 (by sbruno): Quiesce warning, which could be a bug IMO, by correctly defining the host_info structure name MFC r257406 (by sbruno): Queisce warning about undeclared function usage. yp_get_default_domain is defined in workaround.c but is not declared in any header file. Tie the declaration to the same #define conditional used when the function is called, NETGROUP MFC r311459: Put proper prototypes in tcpd.h Clang 4.0.0 complains about tcpd.h's not-really-prototypes, e.g.: /usr/include/tcpd.h:75:24: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] extern int hosts_access(); /* access control */ ^ To fix this, turn these declarations into real prototypes. While here, garbage collect the incompatible rfc931() function from scaffold.c, as it is never used. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D9052 MFC r311461: Also remove unnecessary extern keywords from tcpd.h. Noticed by: kib MFC r311556: After r311459, some ports can break, because a few of the newly added prototypes in <tcpd.h> use FILE. Pull in a minimal forward declaration of FILE from <stdio.h> to minimize impact. Sorry for the breakage. Reported by: Shawn Webb <shawn.webb@hardenedbsd.org>
Diffstat (limited to 'contrib/tcp_wrappers/clean_exit.c')
-rw-r--r--contrib/tcp_wrappers/clean_exit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/tcp_wrappers/clean_exit.c b/contrib/tcp_wrappers/clean_exit.c
index cb9d4f5..41caaf0 100644
--- a/contrib/tcp_wrappers/clean_exit.c
+++ b/contrib/tcp_wrappers/clean_exit.c
@@ -13,6 +13,7 @@ static char sccsid[] = "@(#) clean_exit.c 1.4 94/12/28 17:42:19";
#endif
#include <stdio.h>
+#include <unistd.h>
extern void exit();
OpenPOWER on IntegriCloud