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:
Francois-Xavier Le Bail 2020-12-14 22:02:01 +01:00
parent 833305f928
commit 89fc495c07

View File

@ -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);
}