Use headers instead of manual declerations of standard functions and

variables.
This commit is contained in:
Brooks Davis 2019-07-17 23:36:36 +00:00
parent bbac74ca3c
commit 7d2d393c25
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350100
5 changed files with 5 additions and 14 deletions

View file

@ -14,11 +14,8 @@ static char sccsid[] = "@(#) inetcf.c 1.7 97/02/12 02:13:23";
#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"

View file

@ -21,6 +21,7 @@ static char sccs_id[] = "@(#) scaffold.c 1.6 97/03/21 19:27:24";
#include <stdio.h>
#include <syslog.h>
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>

View file

@ -26,6 +26,7 @@ static char sccsid[] = "@(#) tcpd.c 1.10 96/02/11 17:01:32";
#include <stdio.h>
#include <syslog.h>
#include <string.h>
#include <unistd.h>
#ifndef MAXPATHNAMELEN
#define MAXPATHNAMELEN BUFSIZ

View file

@ -34,14 +34,9 @@ static char sccsid[] = "@(#) tcpdchk.c 1.8 97/02/12 02:13:25";
#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 */

View file

@ -30,13 +30,10 @@ static char sccsid[] = "@(#) tcpdmatch.c 1.5 96/02/11 17:01:36";
#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 */
#endif