aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wtls.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-02-01 09:22:22 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-02-01 09:22:22 +0000
commitdb66187a16f74a4d05a50d23b1016d14d0994299 (patch)
tree8be79c8a07b7a4ab3c5cc0bbdea1660082f9a156 /epan/dissectors/packet-wtls.c
parent794daaa88264d5f9ebec463b115bde47b6b4afe7 (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Add also a missing break; svn path=/trunk/; revision=47413
Diffstat (limited to 'epan/dissectors/packet-wtls.c')
-rw-r--r--epan/dissectors/packet-wtls.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/epan/dissectors/packet-wtls.c b/epan/dissectors/packet-wtls.c
index 33930f4379..f136455ec7 100644
--- a/epan/dissectors/packet-wtls.c
+++ b/epan/dissectors/packet-wtls.c
@@ -416,12 +416,12 @@ dissect_wtls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_item (wtls_msg_type_tree, hf_wtls_alert_level,
tvb,offset,1,ENC_BIG_ENDIAN);
offset+=1;
- count = tvb_get_ntohs (tvb, offset);
proto_tree_add_item (wtls_msg_type_tree, hf_wtls_alert_description,
tvb,offset,1,ENC_BIG_ENDIAN);
- offset+=1;
+ /*offset+=1;*/
+ break;
default:
- offset+=count;
+ /*offset+=count;*/
break;
}
}
@@ -441,7 +441,7 @@ add_text_identifier(tvbuff_t *tvb, int offset, int hf_charset,
proto_tree_add_item(tree, hf_size, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
proto_tree_add_item(tree, hf_str, tvb, offset, size, ENC_BIG_ENDIAN);
- offset+=size;
+ /*offset+=size;*/
client_size+=size+3;
#ifdef DEBUG
fprintf(stderr, "text id size = %d, client_size = %d\n",
@@ -881,7 +881,6 @@ dissect_wtls_handshake(proto_tree *tree, tvbuff_t *tvb, guint offset, guint coun
hf_wtls_hands_serv_hello_cipher_bulk,
tvb,offset,1,ENC_BIG_ENDIAN);
offset++;
- value = tvb_get_guint8 (tvb, offset);
proto_tree_add_item(wtls_msg_type_item_sub_tree,
hf_wtls_hands_serv_hello_cipher_mac,
tvb,offset,1,ENC_BIG_ENDIAN);
@@ -1067,7 +1066,7 @@ dissect_wtls_handshake(proto_tree *tree, tvbuff_t *tvb, guint offset, guint coun
}
break;
default:
- offset+=count;
+ /*offset+=count;*/
break;
}
}