Skip to content

Commit

Permalink
Merge pull request #32 from heitbaum/gcc
Browse files Browse the repository at this point in the history
fix build with gcc-15
  • Loading branch information
jpr5 authored Dec 9, 2024
2 parents 2a9603b + 742424d commit b2e3ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ngrep.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,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;
Expand Down Expand Up @@ -177,7 +177,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;


/*
Expand Down

0 comments on commit b2e3ba3

Please sign in to comment.