File: ftbfs-gcc15.diff

package info (click to toggle)
ngrep 1.47%2Bds1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 724 kB
  • sloc: sh: 3,119; ansic: 1,427; makefile: 70; perl: 56
file content (32 lines) | stat: -rw-r--r-- 1,062 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
From: Rudi Heitbaum <rudi@heitbaum.com>
Date: Mon, 9 Dec 2024 09:44:12 +0000
Subject: [PATCH] fix build with gcc-15

Origin: upstream, https://github.com/jpr5/ngrep/commit/742424ddd76e15bd151e40834e8f1fad65900b65.patch
Bug-Debian: https://bugs.debian.org/1097464
---
 ngrep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ngrep.c b/ngrep.c
index 7c0b6c7..c283227 100644
--- a/ngrep.c
+++ b/ngrep.c
@@ -153,7 +153,7 @@ struct re_pattern_buffer pattern;
 
 char *match_data = NULL, *bin_data = NULL;
 uint16_t match_len = 0;
-int8_t (*match_func)() = &blank_match_func;
+int8_t (*match_func)(unsigned char *, uint32_t, uint16_t *, uint16_t *) = &blank_match_func;
 
 int8_t dump_single = 0;
 void (*dump_func)(unsigned char *, uint32_t, uint16_t, uint16_t) = &dump_formatted;
@@ -184,7 +184,7 @@ FD_SET delay_fds;
 SOCKET delay_socket = 0;
 #endif
 
-void (*print_time)() = NULL, (*dump_delay)() = dump_delay_proc_init;
+void (*print_time)(struct pcap_pkthdr *) = NULL, (*dump_delay)(struct pcap_pkthdr *) = dump_delay_proc_init;
 
 
 /*