diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-02-15 22:41:51 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-02-16 06:42:09 +0000 |
commit | 1077e9afcc72d312e194169c2598319be38b7f29 (patch) | |
tree | e1dbe08eac7e1a14cb6e598a9c02d35951f812e9 /epan | |
parent | 34b983666da4358bc38fd025e3e0793a81256451 (diff) | |
download | wireshark-1077e9afcc72d312e194169c2598319be38b7f29.tar.gz |
Squelch a compiler warning.
All we care about is whether the bit in question is set or not, so just
test whether (value & BIT) != 0.
Change-Id: I6a1eb6b09a7e64d4da9cf92423a44be17625310f
Reviewed-on: https://code.wireshark.org/review/20129
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-rohc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rohc.c b/epan/dissectors/packet-rohc.c index 3107e7d265..3f02f29fd8 100644 --- a/epan/dissectors/packet-rohc.c +++ b/epan/dissectors/packet-rohc.c @@ -650,7 +650,7 @@ dissect_rohc_ext_format(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int * ..... ..... ..... ..... ..... ..... ..... ..... */ proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_rohc_ext3_inner_ip_flags, ett_rohc_ext3_inner_ip_flags, inner_ip_flags, ENC_BIG_ENDIAN, &ext3_inner_ip_flags_value); - rohc_cid_context->rnd = (ext3_inner_ip_flags_value & ROHC_RTP_EXT3_INNER_RND_MASK) >> 1; + rohc_cid_context->rnd = ((ext3_inner_ip_flags_value & ROHC_RTP_EXT3_INNER_RND_MASK) != 0); offset++; } if (ext3_inner_ip_flags_value & ROHC_RTP_EXT3_INNER_IP2_MASK) { @@ -677,7 +677,7 @@ dissect_rohc_ext_format(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int */ proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_rohc_ext3_outer_ip_flags, ett_rohc_ext3_outer_ip_flags, outer_ip_flags, ENC_BIG_ENDIAN, &ext3_outer_ip_flags_value); /* TODO Update rnd when adding support for inner/outer behavior */ - rohc_cid_context->rnd = (ext3_outer_ip_flags_value & ROHC_RTP_EXT3_OUTER_RND_MASK) >> 1; + rohc_cid_context->rnd = ((ext3_outer_ip_flags_value & ROHC_RTP_EXT3_OUTER_RND_MASK) != 0); offset++; } if (ext3_flags_value & ROHC_RTP_EXT3_S_MASK) { |