mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 02:23:27 +08:00
Squelch a warning and get rid of a duplicate assignment.
This commit is contained in:
parent
62d52f2ea8
commit
3ac4e726be
@ -119,7 +119,7 @@ pflog_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
|
||||
}
|
||||
|
||||
#define MIN_PFLOG_HDRLEN 45
|
||||
hdr = (struct pfloghdr *)p;
|
||||
hdr = (const struct pfloghdr *)p;
|
||||
if (hdr->length < MIN_PFLOG_HDRLEN) {
|
||||
ND_PRINT((ndo, "[pflog: invalid header length!]"));
|
||||
return (hdr->length); /* XXX: not really */
|
||||
@ -132,7 +132,6 @@ pflog_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
|
||||
}
|
||||
|
||||
/* print what we know */
|
||||
hdr = (struct pfloghdr *)p;
|
||||
ND_TCHECK(*hdr);
|
||||
if (ndo->ndo_eflag)
|
||||
pflog_print(ndo, hdr);
|
||||
|
Loading…
Reference in New Issue
Block a user