Description: fix FTBFS with gcc-15
Author: David da Silva Polverari <polverari@debian.org>
Bug-Debian: https://bugs.debian.org/1096635
Forwarded: no
Last-Update: 2025-08-28

--- a/include/firewalk.h
+++ b/include/firewalk.h
@@ -253,7 +253,7 @@
 int                                 /* 1 on success -1 or failure */
 catch_sig(
     int,                            /* signal to catch */
-    void (*)()                      /* new signal handler */
+    void (*)(int)                      /* new signal handler */
     );
 
 /* handles SIGINT from user */
@@ -285,7 +285,7 @@
 /* dump usage */
 void
 usage(
-    u_char *                        /* argv[0] */
+    char *                        /* argv[0] */
     );
 
 #endif /* _FIREWALK_H */
--- a/src/main.c
+++ b/src/main.c
@@ -171,7 +171,7 @@
 }
 
 void
-usage(u_char *argv0)
+usage(char *argv0)
 {
     fprintf(stderr, "Usage : %s [options] target_gateway metric\n"
         "\t\t   [-d %d - %d] destination port to use (ramping phase)\n"
--- a/src/signal.c
+++ b/src/signal.c
@@ -40,7 +40,7 @@
 extern int loop;
 
 int
-catch_sig(int signo, void (*handler)())
+catch_sig(int signo, void (*handler)(int))
 {
     struct sigaction action;
 
