Skip to content

fails with gcc15 #47

@pgajdos

Description

@pgajdos

Probably something around

diff -upr sipgrep-2.2.0.orig/src/sipgrep.c sipgrep-2.2.0/src/sipgrep.c
--- sipgrep-2.2.0.orig/src/sipgrep.c	2025-06-19 13:30:29.254380370 +0000
+++ sipgrep-2.2.0/src/sipgrep.c	2025-06-19 13:31:44.957886641 +0000
@@ -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;
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions