Description: Fix FTBFS with GCC 15 by fixing function prototypes
Bug-Debian: https://bugs.debian.org/1098026
Forwarded: no
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2025-09-23

--- a/trypeercred.c
+++ b/trypeercred.c
@@ -2,7 +2,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
-int main()
+int main(void)
 {
   struct ucred peer;
   socklen_t optlen = sizeof(peer);
--- a/trywaitp.c
+++ b/trywaitp.c
@@ -1,7 +1,7 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-int main()
+int main(void)
 {
   waitpid(0,0,0);
   return 0;
--- a/unixserver.c
+++ b/unixserver.c
@@ -226,7 +226,7 @@
   command_argv = argv + 1;
 }
 
-int make_socket()
+int make_socket(void)
 {
   struct sockaddr_un* saddr;
   int s;
@@ -307,7 +307,7 @@
   }
 }
 
-void handle_children()
+void handle_children(int sig)
 {
   pid_t pid;
   int status;
@@ -334,7 +334,7 @@
   log_child_exit(pid, status);
 }
 
-void handle_intr()
+void handle_intr(int sig)
 {
   if(opt_delete)
     unlink(opt_socket);
