diff options
author | Wesley Shields <wxs@atarininja.org> | 2014-01-03 11:14:39 -0500 |
---|---|---|
committer | Wesley Shields <wxs@atarininja.org> | 2014-01-03 11:14:39 -0500 |
commit | a484b5bba2f3cd755a5df710c9f3d8f45b7640d5 (patch) | |
tree | c6d28a4c791fbdcc146b38d0dce7bba67ea1b84c /print-pflog.c | |
parent | df9a39412654c2108cde1cfae349957c9387bcda (diff) | |
download | tcpdump-a484b5bba2f3cd755a5df710c9f3d8f45b7640d5.tar.gz |
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.
Diffstat (limited to 'print-pflog.c')
-rw-r--r-- | print-pflog.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |