tcpd/tcp_wrappers_7.6-nonvoid.diff

68 lines
1.1 KiB
Diff

--- fakelog.c
+++ fakelog.c
@@ -16,7 +16,7 @@
/* openlog - dummy */
/* ARGSUSED */
-
+void
openlog(name, logopt, facility)
char *name;
int logopt;
@@ -26,7 +26,7 @@
}
/* vsyslog - format one record */
-
+void
vsyslog(severity, fmt, ap)
int severity;
char *fmt;
@@ -42,7 +42,7 @@
/* syslog - format one record */
/* VARARGS */
-
+void
VARARGS(syslog, int, severity)
{
va_list ap;
@@ -55,7 +55,7 @@
}
/* closelog - dummy */
-
+void
closelog()
{
/* void */
--- fix_options.c
+++ fix_options.c
@@ -31,7 +31,7 @@
#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
+++ options.c
@@ -541,6 +541,7 @@
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
+++ tcpd.c
@@ -132,4 +132,5 @@
syslog(LOG_ERR, "error: cannot execute %s: %m", path);
clean_exit(&request);
/* NOTREACHED */
+ return 0;
}