From: Wesley Shields Date: Fri, 3 Jan 2014 16:14:39 +0000 (-0500) Subject: Fix build on FreeBSD. X-Git-Tag: tcpdump-4.6.0~304^2^2 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a484b5bba2f3cd755a5df710c9f3d8f45b7640d5 Fix build on FreeBSD. Looks like there was a mistake made in d8acd8f that broke the build on systems where print-pflog.c is compiled. This fixes the build. --- diff --git a/print-pflog.c b/print-pflog.c index 39b30bec..bcb62658 100644 --- a/print-pflog.c +++ b/print-pflog.c @@ -117,7 +117,7 @@ pflog_if_print(const struct pcap_pkthdr *h, register const u_char *p) /* check length */ if (caplen < sizeof(u_int8_t)) { - printf("%s", pflog); + printf("%s", tstr); return (caplen); } @@ -130,7 +130,7 @@ pflog_if_print(const struct pcap_pkthdr *h, register const u_char *p) hdrlen = BPF_WORDALIGN(hdr->length); if (caplen < hdrlen) { - printf("%s", pflog); + printf("%s", tstr); return (hdrlen); /* XXX: true? */ } @@ -173,7 +173,7 @@ pflog_if_print(const struct pcap_pkthdr *h, register const u_char *p) return (hdrlen); trunc: - printf("%s", pflog); + printf("%s", tstr); return (hdrlen); }