svn commit: r350100 - head/contrib/tcp_wrappers

Brooks Davis brooks at FreeBSD.org
Wed Jul 17 23:36:38 UTC 2019


Author: brooks
Date: Wed Jul 17 23:36:36 2019
New Revision: 350100
URL: https://svnweb.freebsd.org/changeset/base/350100

Log:
  Use headers instead of manual declerations of standard functions and
  variables.

Modified:
  head/contrib/tcp_wrappers/inetcf.c
  head/contrib/tcp_wrappers/scaffold.c
  head/contrib/tcp_wrappers/tcpd.c
  head/contrib/tcp_wrappers/tcpdchk.c
  head/contrib/tcp_wrappers/tcpdmatch.c

Modified: head/contrib/tcp_wrappers/inetcf.c
==============================================================================
--- head/contrib/tcp_wrappers/inetcf.c	Wed Jul 17 23:33:14 2019	(r350099)
+++ head/contrib/tcp_wrappers/inetcf.c	Wed Jul 17 23:36:36 2019	(r350100)
@@ -14,11 +14,8 @@ static char sccsid[] = "@(#) inetcf.c 1.7 97/02/12 02:
 #include <sys/stat.h>
 #include <stdio.h>
 #include <errno.h>
-#include <string.h>
 #include <stdlib.h>
-
-extern int errno;
-extern void exit();
+#include <string.h>
 
 #include "tcpd.h"
 #include "inetcf.h"

Modified: head/contrib/tcp_wrappers/scaffold.c
==============================================================================
--- head/contrib/tcp_wrappers/scaffold.c	Wed Jul 17 23:33:14 2019	(r350099)
+++ head/contrib/tcp_wrappers/scaffold.c	Wed Jul 17 23:36:36 2019	(r350100)
@@ -21,6 +21,7 @@ static char sccs_id[] = "@(#) scaffold.c 1.6 97/03/21 
 #include <stdio.h>
 #include <syslog.h>
 #include <setjmp.h>
+#include <stdlib.h>
 #include <string.h>
 #include <stdlib.h>
 

Modified: head/contrib/tcp_wrappers/tcpd.c
==============================================================================
--- head/contrib/tcp_wrappers/tcpd.c	Wed Jul 17 23:33:14 2019	(r350099)
+++ head/contrib/tcp_wrappers/tcpd.c	Wed Jul 17 23:36:36 2019	(r350100)
@@ -26,6 +26,7 @@ static char sccsid[] = "@(#) tcpd.c 1.10 96/02/11 17:0
 #include <stdio.h>
 #include <syslog.h>
 #include <string.h>
+#include <unistd.h>
 
 #ifndef MAXPATHNAMELEN
 #define MAXPATHNAMELEN	BUFSIZ

Modified: head/contrib/tcp_wrappers/tcpdchk.c
==============================================================================
--- head/contrib/tcp_wrappers/tcpdchk.c	Wed Jul 17 23:33:14 2019	(r350099)
+++ head/contrib/tcp_wrappers/tcpdchk.c	Wed Jul 17 23:36:36 2019	(r350100)
@@ -34,14 +34,9 @@ static char sccsid[] = "@(#) tcpdchk.c 1.8 97/02/12 02
 #include <setjmp.h>
 #include <errno.h>
 #include <netdb.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <stdlib.h>
-
-extern int errno;
-extern void exit();
-extern int optind;
-extern char *optarg;
 
 #ifndef INADDR_NONE
 #define INADDR_NONE     (-1)		/* XXX should be 0xffffffff */

Modified: head/contrib/tcp_wrappers/tcpdmatch.c
==============================================================================
--- head/contrib/tcp_wrappers/tcpdmatch.c	Wed Jul 17 23:33:14 2019	(r350099)
+++ head/contrib/tcp_wrappers/tcpdmatch.c	Wed Jul 17 23:36:36 2019	(r350100)
@@ -30,12 +30,9 @@ static char sccsid[] = "@(#) tcpdmatch.c 1.5 96/02/11 
 #include <stdio.h>
 #include <syslog.h>
 #include <setjmp.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-
-extern void exit();
-extern int optind;
-extern char *optarg;
 
 #ifndef	INADDR_NONE
 #define	INADDR_NONE	(-1)		/* XXX should be 0xffffffff */


More information about the svn-src-all mailing list