<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Fix various broken prototypes.

--- sysklogd-1.5.1/syslog.c	2014-10-04 20:47:18.000000000 +0100
+++ sysklogd-1.5.1/syslog.c	2025-07-03 22:53:56.404595833 +0100
@@ -138,7 +138,6 @@
 	/* substitute error message for %m */
 	{
 		register char ch, *t1, *t2;
-		char *strerror();
 
 		for (t1 = fmt_cpy;
 		     (ch = *fmt) != '\0' &amp;&amp; t1&lt;fmt_cpy+sizeof(fmt_cpy);
--- sysklogd-1.5.1/syslogd.c	2025-07-03 22:54:09.359966848 +0100
+++ sysklogd-1.5.1/syslogd.c	2025-07-03 22:53:40.324616256 +0100
@@ -804,12 +804,12 @@
 void printsys(char *msg);
 void logmsg(int pri, char *msg, const char *from, int flags);
 void fprintlog(register struct filed *f, char *from, int flags, char *msg);
-void endtty();
+void endtty(int);
 void wallmsg(register struct filed *f, struct iovec *iov);
-void reapchild();
+void reapchild(int);
 const char *cvthname(struct sockaddr_in *f);
-void domark();
-void debug_switch();
+void domark(int);
+void debug_switch(int);
 void logerror(char *type);
 void die(int sig);
 #ifndef TESTING
@@ -823,7 +823,7 @@
 #endif /* __GLIBC__ */
 static void dprintf(char *, ...);
 static void allocate_log(void);
-void sighup_handler();
+void sighup_handler(int);
 
 #ifdef SYSLOG_UNIXAF
 static int create_unix_socket(const char *path);
@@ -1979,7 +1979,7 @@
 
 jmp_buf ttybuf;
 
-void endtty()
+void endtty(int dummy)
 {
 	longjmp(ttybuf, 1);
 }
@@ -2087,7 +2087,7 @@
 	reenter = 0;
 }
 
-void reapchild()
+void reapchild(int dummy)
 {
 	int saved_errno = errno;
 #if defined(SYSV) &amp;&amp; !defined(linux)
@@ -2168,7 +2168,7 @@
 	return (hp-&gt;h_name);
 }
 
-void domark()
+void domark(int dummy)
 {
 	register struct filed *f;
 #ifdef SYSV
@@ -2202,7 +2202,7 @@
 	(void) alarm(TIMERINTVL);
 }
 
-void debug_switch()
+void debug_switch(int dummy)
 
 {
 	dprintf("Switching debugging_on to %s\n", (debugging_on == 0) ? "true" : "false");
@@ -2901,7 +2901,7 @@
  * doing this during a signal handler.  Instead this function simply sets
  * a flag variable which will tell the main loop to go through a restart.
  */
-void sighup_handler()
+void sighup_handler(int dummy)
 
 {
 	restart = 1;
</pre></body></html>