diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-03-23 13:09:35 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-03-23 13:09:35 +0000 |
commit | 4a9ad55295df000dd3c900d086e7c3e27e7c7c8a (patch) | |
tree | c4d755e04303dbe9b38e5555a6d6045009701807 /epan | |
parent | b96aaabca41735d5071066dcb9cae03a84a2bab3 (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48511
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-soupbintcp.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/epan/dissectors/packet-soupbintcp.c b/epan/dissectors/packet-soupbintcp.c index 9926bdcea1..5c1222a69b 100644 --- a/epan/dissectors/packet-soupbintcp.c +++ b/epan/dissectors/packet-soupbintcp.c @@ -323,7 +323,6 @@ dissect_soupbintcp_common( proto_tree_add_item(soupbintcp_tree, hf_soupbintcp_text, tvb, offset, expected_len - 1, ENC_ASCII|ENC_NA); - offset += expected_len - 1; break; case 'A': /* Login Accept */ @@ -337,19 +336,16 @@ dissect_soupbintcp_common( hf_soupbintcp_next_seq_num, tvb, offset, 20, "X", "%d", atoi(tmp_buf)); - offset += 20; break; case 'J': /* Login Reject */ proto_tree_add_item(soupbintcp_tree, hf_soupbintcp_reject_code, tvb, offset, 1, ENC_BIG_ENDIAN); - offset += 1; break; case 'U': /* Unsequenced Data */ /* Display handled by sub-dissector */ - offset += expected_len - 1; break; case 'S': /* Sequenced Data */ @@ -362,7 +358,6 @@ dissect_soupbintcp_common( this_seq); /* Display handled by sub-dissector */ - offset += expected_len - 1; break; case 'L': /* Login Request */ @@ -386,7 +381,6 @@ dissect_soupbintcp_common( hf_soupbintcp_req_seq_num, tvb, offset, 20, "X", "%d", atoi(tmp_buf)); - offset += 20; break; case 'H': /* Server Heartbeat */ @@ -406,7 +400,6 @@ dissect_soupbintcp_common( proto_tree_add_item(tree, hf_soupbintcp_message, tvb, offset, -1, ENC_ASCII|ENC_NA); - offset += expected_len - 1; break; } } |