diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-04-02 12:51:52 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-04-02 19:53:52 +0000 |
commit | 29519c447665068e3f40cdb9699e6ec39561a17e (patch) | |
tree | a02a7e39fcd764d5bd4d7e05ea3105279184d812 /epan/dissectors | |
parent | b8b68f79a1d3161355dfe0f227a4ab9a455f84fa (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')
-rw-r--r-- | epan/dissectors/packet-tcp.h | 2 |
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 { |