summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-02-24 00:50:19 +0100
committerGuy Harris <guy@alum.mit.edu>2015-02-24 00:26:41 +0000
commita6f4bdb874169b7ac6564fa5c17be95fed0aa8ef (patch)
tree529a3bae0a3ffaeeea6650bc4468396ead568086
parent5e34492a7e0196baa9e14d004477d1c233d38650 (diff)
downloadwireshark-a6f4bdb874169b7ac6564fa5c17be95fed0aa8ef.tar.gz
pcap-common: fix build error with gcc5
gcc5 complains about the issue below, so add a trivial fixup. CC libwiretap_la-pcap-common.lo pcap-common.c: In function 'pcap_byteswap_nflog_pseudoheader': pcap-common.c:1290:30: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] if (!(nfhdr->nflog_version) == 0) { ^ cc1: all warnings being treated as errors Change-Id: I9f5b090ffd564f203cc3fb4ff302f2e4752865f0 Reviewed-on: https://code.wireshark.org/review/7336 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--wiretap/pcap-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/pcap-common.c b/wiretap/pcap-common.c
index 4dd54a3e87..1526bba80d 100644
--- a/wiretap/pcap-common.c
+++ b/wiretap/pcap-common.c
@@ -1284,7 +1284,7 @@ pcap_byteswap_nflog_pseudoheader(struct wtap_pkthdr *phdr, guint8 *pd)
p = pd;
nfhdr = (struct nflog_hdr *)pd;
- if (!(nfhdr->nflog_version) == 0) {
+ if (nfhdr->nflog_version != 0) {
/* Unknown NFLOG version */
return;
}