mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 10:33:28 +08:00
PFLOG: Try to fix previous commit
The error was: ./print-pflog.c:99:20: error: passing 'char const[16]' to parameter of type 'const u_char *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Werror,-Wpointer-sign] nd_printjnp(ndo, hdr->ruleset, PFLOG_RULESET_NAME_SIZE); ^~~~~~~~~~~~ ./netdissect.h:397:61: note: passing argument to parameter here extern void nd_printjnp(netdissect_options *, const u_char *, u_int); ^
This commit is contained in:
parent
833305f928
commit
89fc495c07
@ -96,7 +96,7 @@ pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr)
|
||||
ND_PRINT("rule %u/", rulenr);
|
||||
else {
|
||||
ND_PRINT("rule %u.", rulenr);
|
||||
nd_printjnp(ndo, hdr->ruleset, PFLOG_RULESET_NAME_SIZE);
|
||||
nd_printjnp(ndo, (const u_char*)hdr->ruleset, PFLOG_RULESET_NAME_SIZE);
|
||||
ND_PRINT(".%u/", subrulenr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user