aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tcp.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-04-02 12:51:52 -0700
committerGerald Combs <gerald@wireshark.org>2014-04-02 19:53:52 +0000
commit29519c447665068e3f40cdb9699e6ec39561a17e (patch)
treea02a7e39fcd764d5bd4d7e05ea3105279184d812 /epan/dissectors/packet-tcp.h
parentb8b68f79a1d3161355dfe0f227a4ab9a455f84fa (diff)
Remove extra parenthesis in EQ_SEQ.
Fixes the following clang warning: epan/follow.c:397:20: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] if ( ((sequence) == (seq[src_index])) ) { ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ epan/follow.c:397:20: note: remove extraneous parentheses around the comparison to silence this warning if ( ((sequence) == (seq[src_index])) ) { ~ ^ ~ epan/follow.c:397:20: note: use '=' to turn this equality comparison into an assignment if ( ((sequence) == (seq[src_index])) ) { ^~ = Change-Id: Ic257bbc598e17f854b671056887ca1a13dcea850 Reviewed-on: https://code.wireshark.org/review/928 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-tcp.h')
-rw-r--r--epan/dissectors/packet-tcp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tcp.h b/epan/dissectors/packet-tcp.h
index 0c79700bc5..c7a46f3788 100644
--- a/epan/dissectors/packet-tcp.h
+++ b/epan/dissectors/packet-tcp.h
@@ -52,7 +52,7 @@ extern "C" {
#define LT_SEQ(x, y) ((gint32)((x) - (y)) < 0)
#define GE_SEQ(x, y) ((gint32)((y) - (x)) <= 0)
#define LE_SEQ(x, y) ((gint32)((x) - (y)) <= 0)
-#define EQ_SEQ(x, y) ((x) == (y))
+#define EQ_SEQ(x, y) (x) == (y)
/* the tcp header structure, passed to tap listeners */
typedef struct tcpheader {