Skip to content

Commit 0536169

Browse files
authored
pppdump: Fixed building with GCC 15 (#548)
GCC 15 defaults to C23 which does not allow K&R declarations. Credit Yaakov Selkowitz in: https://src.fedoraproject.org/rpms/ppp/pull-request/12 Signed-off-by: Jaroslav Škarvada <[email protected]>
1 parent cd6bb90 commit 0536169

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

pppdump/pppdump.c

+7-13
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ int tot_sent, tot_rcvd;
4242
extern int optind;
4343
extern char *optarg;
4444

45-
void dumplog();
46-
void dumpppp();
47-
void show_time();
45+
void dumplog(FILE *);
46+
void dumpppp(FILE *);
47+
void show_time(FILE *, int);
4848

4949
int
50-
main(ac, av)
51-
int ac;
52-
char **av;
50+
main(int ac, char **av)
5351
{
5452
int i;
5553
char *p;
@@ -97,8 +95,7 @@ main(ac, av)
9795
}
9896

9997
void
100-
dumplog(f)
101-
FILE *f;
98+
dumplog(FILE *f)
10299
{
103100
int c, n, k, col;
104101
int nb, c2;
@@ -241,8 +238,7 @@ struct pkt {
241238
unsigned char dbuf[8192];
242239

243240
void
244-
dumpppp(f)
245-
FILE *f;
241+
dumpppp(FILE *f)
246242
{
247243
int c, n, k;
248244
int nb, nl, dn, proto, rv;
@@ -375,9 +371,7 @@ dumpppp(f)
375371
}
376372

377373
void
378-
show_time(f, c)
379-
FILE *f;
380-
int c;
374+
show_time(FILE *f, int c)
381375
{
382376
time_t t;
383377
int n;

0 commit comments

Comments
 (0)