File: 0002-gcc-15-fixes.patch

package info (click to toggle)
sipgrep 2.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,424 kB
  • sloc: ansic: 4,389; sh: 3,225; makefile: 25
file content (31 lines) | stat: -rw-r--r-- 1,025 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
From: Victor Seva <vseva@debian.org>
Date: Wed, 10 Sep 2025 10:11:47 +0200
Subject: gcc-15 fixes
Forwarded: https://github.com/sipcapture/sipgrep/pull/48

---
 src/sipgrep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sipgrep.c b/src/sipgrep.c
index 207684f..a5d7528 100644
--- a/src/sipgrep.c
+++ b/src/sipgrep.c
@@ -163,7 +163,7 @@ pcre2_code *pattern = NULL;
 PCRE2_SPTR match_data = NULL;
 char *bin_data = NULL;
 uint16_t match_len = 0;
-int8_t (*match_func) () = &blank_match_func;
+int8_t (*match_func) (unsigned char *, uint32_t) = &blank_match_func;
 
 int8_t dump_single = 0;
 void (*dump_func) (unsigned char *, uint32_t) = &dump_byline;
@@ -189,7 +189,7 @@ int file_counter = 0;
 struct timeval prev_ts = { 0, 0 }, prev_delay_ts = {
 0, 0};
 
-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;
 
 uint32_t ws_row, ws_col = 80, ws_col_forced = 0;