fix_warnings2

Gbp-Pq: Name fix_warnings2
This commit is contained in:
Marco d'Itri 2022-05-14 02:57:49 +08:00 committed by openKylinBot
parent bb0ea742f1
commit ebb2742f94
14 changed files with 34 additions and 7 deletions

View File

@ -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();

View File

@ -17,7 +17,7 @@ static char sccsid[] = "@(#) fakelog.c 1.3 94/12/28 17:42:21";
/* ARGSUSED */
openlog(name, logopt, facility)
void openlog(name, logopt, facility)
char *name;
int logopt;
int facility;
@ -27,7 +27,7 @@ int facility;
/* vsyslog - format one record */
vsyslog(severity, fmt, ap)
void vsyslog(severity, fmt, ap)
int severity;
char *fmt;
va_list ap;
@ -43,7 +43,7 @@ va_list ap;
/* VARARGS */
VARARGS(syslog, int, severity)
void VARARGS(syslog, int, severity)
{
va_list ap;
char *fmt;
@ -56,7 +56,7 @@ VARARGS(syslog, int, severity)
/* closelog - dummy */
closelog()
void closelog()
{
/* void */
}

View File

@ -34,6 +34,7 @@ static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22";
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <ctype.h>
#include <errno.h>
@ -54,6 +55,9 @@ extern int errno;
#include "tcpd.h"
unsigned long cidr_mask_addr(char *str);
int yp_get_default_domain(char **ptr);
/* Error handling. */
extern jmp_buf tcpd_buf;

View File

@ -12,6 +12,7 @@ static char sccsid[] = "@(#) inetcf.c 1.7 97/02/12 02:13:23";
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
@ -20,6 +21,7 @@ extern void exit();
#include "tcpd.h"
#include "inetcf.h"
#include "scaffold.h"
/*
* Network configuration files may live in unusual places. Here are some

1
misc.c
View File

@ -13,6 +13,7 @@ static char sccsic[] = "@(#) misc.c 1.2 96/02/11 17:01:29";
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tcpd.h"

View File

@ -41,6 +41,7 @@ static char sccsid[] = "@(#) options.c 1.17 96/02/11 17:01:31";
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <syslog.h>
#include <pwd.h>

View File

@ -17,6 +17,7 @@ static char sccsid[] = "@(#) percent_x.c 1.4 94/12/28 17:42:37";
/* System libraries. */
#include <stdio.h>
#include <unistd.h>
#include <syslog.h>
#include <string.h>

View File

@ -16,6 +16,7 @@ static char sccsid[] = "@(#) rfc931.c 1.10 95/01/02 16:11:34";
/* System libraries. */
#include <stdio.h>
#include <unistd.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/socket.h>

View File

@ -22,10 +22,15 @@ static char sccsid[] = "@(#) safe_finger.c 1.4 94/12/28 17:42:41";
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <pwd.h>
#include <grp.h>
#include <syslog.h>
extern void exit();
@ -45,6 +50,8 @@ int finger_pid;
int allow_severity = SEVERITY;
int deny_severity = LOG_WARNING;
int pipe_stdin(char **argv);
void cleanup(sig)
int sig;
{
@ -52,7 +59,7 @@ int sig;
exit(0);
}
main(argc, argv)
int main(argc, argv)
int argc;
char **argv;
{

5
tcpd.c
View File

@ -22,6 +22,7 @@ static char sccsid[] = "@(#) tcpd.c 1.10 96/02/11 17:01:32";
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <unistd.h>
#include <syslog.h>
#include <string.h>
@ -38,10 +39,12 @@ static char sccsid[] = "@(#) tcpd.c 1.10 96/02/11 17:01:32";
#include "patchlevel.h"
#include "tcpd.h"
void fix_options(struct request_info *);
int allow_severity = SEVERITY; /* run-time adjustable */
int deny_severity = LOG_WARNING; /* ditto */
main(argc, argv)
int main(argc, argv)
int argc;
char **argv;
{

View File

@ -28,6 +28,8 @@ static char sccsid[] = "@(#) tcpdchk.c 1.8 97/02/12 02:13:25";
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <syslog.h>
#include <setjmp.h>
#include <errno.h>
@ -53,6 +55,8 @@ extern char *optarg;
#include "inetcf.h"
#include "scaffold.h"
unsigned long cidr_mask_addr(char *str);
/* list of programs which are known to be linked with libwrap in debian */
static const char *const libwrap_programs[] = {
"portmap", "mountd", "statd", "ugidd",

View File

@ -26,6 +26,7 @@ static char sccsid[] = "@(#) tcpdmatch.c 1.5 96/02/11 17:01:36";
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <syslog.h>
#include <setjmp.h>
#include <string.h>

View File

@ -37,7 +37,7 @@ static char sccsid[] = "@(#) try-from.c 1.2 94/12/28 17:42:55";
int allow_severity = SEVERITY; /* run-time adjustable */
int deny_severity = LOG_WARNING; /* ditto */
main(argc, argv)
int main(argc, argv)
int argc;
char **argv;
{

View File

@ -20,6 +20,7 @@ static char sccsid[] = "@(#) update.c 1.1 94/12/28 17:42:56";
/* System libraries */
#include <stdio.h>
#include <unistd.h>
#include <syslog.h>
#include <string.h>