tcpd/tcp_wrappers_7.6-nonvoid.diff

68 lines
1.3 KiB
Diff

--- fakelog.c.orig
+++ fakelog.c
@@ -16,7 +16,7 @@ static char sccsid[] = "@(#) fakelog.c 1
/* openlog - dummy */
/* ARGSUSED */
-
+void
openlog(name, logopt, facility)
char *name;
int logopt;
@@ -26,7 +26,7 @@ int facility;
}
/* vsyslog - format one record */
-
+void
vsyslog(severity, fmt, ap)
int severity;
char *fmt;
@@ -42,7 +42,7 @@ va_list ap;
/* syslog - format one record */
/* VARARGS */
-
+void
VARARGS(syslog, int, severity)
{
va_list ap;
@@ -55,7 +55,7 @@ VARARGS(syslog, int, severity)
}
/* closelog - dummy */
-
+void
closelog()
{
/* void */
--- fix_options.c.orig
+++ fix_options.c
@@ -31,7 +31,7 @@ static char sccsid[] = "@(#) fix_options
#define BUFFER_SIZE 512 /* Was: BUFSIZ */
/* fix_options - get rid of IP-level socket options */
-
+void
fix_options(request)
struct request_info *request;
{
--- options.c.orig
+++ options.c
@@ -541,6 +541,7 @@ char *name;
return (t->value);
tcpd_jump("bad syslog facility or severity: \"%s\"", name);
/* NOTREACHED */
+ return 0;
}
/* severity_option - change logging severity for this event (Dave Mitchell) */
--- tcpd.c.orig
+++ tcpd.c
@@ -132,4 +132,5 @@ char **argv;
syslog(LOG_ERR, "error: cannot execute %s: %m", path);
clean_exit(&request);
/* NOTREACHED */
+ return 0;
}