diff --git a/nfq2/desync.c b/nfq2/desync.c index b31654d..b8e77fb 100644 --- a/nfq2/desync.c +++ b/nfq2/desync.c @@ -1492,7 +1492,7 @@ static void udp_standard_protocol_probe(const uint8_t *data_payload, size_t len_ protocol_probe(testers, sizeof(testers) / sizeof(*testers), data_payload, len_payload, ctrack, l7proto, l7payload); } -static const uint8_t *dns_extract_name(const uint8_t *a, const uint8_t *b, const uint8_t *e, uint8_t *name, size_t name_size) +static const uint8_t *dns_extract_name(const uint8_t *a, const uint8_t *b, const uint8_t *e, char *name, size_t name_size) { size_t nl, off; const uint8_t *p; diff --git a/nfq2/nfqws.c b/nfq2/nfqws.c index f88deb2..aed66e8 100644 --- a/nfq2/nfqws.c +++ b/nfq2/nfqws.c @@ -58,7 +58,8 @@ bool bQuit = false; static void onhup(int sig) { - printf("HUP received ! Lists will be reloaded.\n"); + const char *msg = "HUP received ! Lists will be reloaded.\n"; + size_t wr = write(1, msg, strlen(msg)); bReload = true; } static void ReloadCheck()