Debian Codegraph @

debian/patches/v2.5.2-4-g0536169.pppdump-fixed-building-with-gcc-15-548.patch

raw
1 Subject: Pppdump: Fixed building with GCC 15 (#548)
2 Origin: upstream, commit v2.5.2-4-g0536169 <https://github.com/ppp-project/ppp/commit/0536169>
3 Author: Jaroslav Škarvada <[email protected]>
4 Date: Thu Feb 27 23:00:16 2025 +0100
5 Bug-Debian: https://bugs.debian.org/1097645
6
7 GCC 15 defaults to C23 which does not allow K&R declarations.
8
9 Credit Yaakov Selkowitz in:
10 https://src.fedoraproject.org/rpms/ppp/pull-request/12
11
12 Signed-off-by: Jaroslav Škarvada <[email protected]>
13
14 --- a/pppdump/pppdump.c
15 +++ b/pppdump/pppdump.c
16 @@ -42,14 +42,12 @@
17 extern int optind;
18 extern char *optarg;
19
20 -void dumplog();
21 -void dumpppp();
22 -void show_time();
23 +void dumplog(FILE *);
24 +void dumpppp(FILE *);
25 +void show_time(FILE *, int);
26
27 int
28 -main(ac, av)
29 - int ac;
30 - char **av;
31 +main(int ac, char **av)
32 {
33 int i;
34 char *p;
35 @@ -97,8 +95,7 @@
36 }
37
38 void
39 -dumplog(f)
40 - FILE *f;
41 +dumplog(FILE *f)
42 {
43 int c, n, k, col;
44 int nb, c2;
45 @@ -241,8 +238,7 @@
46 unsigned char dbuf[8192];
47
48 void
49 -dumpppp(f)
50 - FILE *f;
51 +dumpppp(FILE *f)
52 {
53 int c, n, k;
54 int nb, nl, dn, proto, rv;
55 @@ -375,9 +371,7 @@
56 }
57
58 void
59 -show_time(f, c)
60 - FILE *f;
61 - int c;
62 +show_time(FILE *f, int c)
63 {
64 time_t t;
65 int n;