Open 0n1cOn3 opened 6 months ago
I have the same issue on Fedora 40
tried:
pthread_t chan_sniffer = 0;
but this yields more errors
`poc.c:156:30: error: implicit declaration of function ‘get_file_lines’ [-Wimplicit-function-declaration] 156 | file_lines = get_file_lines(file_name); | ^ |
if(fgets(buf, sizeof(buf), fp1)) | ^~~ |
---|---|---|---|---|
unsigned char * |
In file included from poc.c:1: /usr/include/stdio.h:654:38: note: expected ‘char restrict’ but argument is of type ‘unsigned char ’ 654 | extern char fgets (char restrict s, int n, FILE *restrict __stream) | poc_pkts[i].pkts[j].len = str_to_hex(buf, poc_pkts[i].pkts[j].data, sizeof(poc_pkts[i].pkts[j].data)); | ^ |
uint16_t recv_seq_ctrl; | ^ |
if(fp = fopen(filename, "r")) | ^~ poc.c:494:22: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness [-Wpointer-sign] 494 | if(fgets(buf, sizeof(buf), fp)) | ^~~ | |
---|---|---|---|---|---|---|---|---|---|---|
unsigned char * |
/usr/include/stdio.h:654:38: note: expected ‘char restrict’ but argument is of type ‘unsigned char ’
654 | extern char fgets (char restrict s, int n, FILE *restrict __stream)
| ~~~^
poc.c: In function ‘str_to_hex’:
poc.c:516:17: error: ‘return’ with no value, in function returning non-void [-Wreturn-mismatch]
516 | return;
| ^~
`
Expected Behavior
Compiling mdk4 successful
Actual Behavior
Steps to Reproduce the Problem
OS: Fedora 40
Specifications
Terminal Output