File: 060_fix-ftbfs-gcc-15.patch

package info (click to toggle)
firewalk 5.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 688 kB
  • sloc: sh: 1,754; ansic: 1,349; makefile: 26
file content (48 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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;