aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dec-dnart.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-07-15 18:03:43 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-07-15 18:03:43 +0000
commit779c37aa2067d2ea639fdb5da61c9105f2f79771 (patch)
tree6fd3e2f11fabe4a63150f792faa96bbf29516c7f /epan/dissectors/packet-dec-dnart.c
parent15a785c75764af8143299aabcc21e56dae3e9ab5 (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50617
Diffstat (limited to 'epan/dissectors/packet-dec-dnart.c')
-rw-r--r--epan/dissectors/packet-dec-dnart.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dec-dnart.c b/epan/dissectors/packet-dec-dnart.c
index 17fa169e65..301eae538b 100644
--- a/epan/dissectors/packet-dec-dnart.c
+++ b/epan/dissectors/packet-dec-dnart.c
@@ -541,8 +541,7 @@ dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_item(nsp_msg_tree, hf_dec_rt_src_node, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
- offset =
- handle_nsp_msg(tvb,
+ handle_nsp_msg(tvb,
pinfo,
nsp_msg_tree,
offset,
@@ -564,7 +563,7 @@ do_initialization_msg(
col_set_str(pinfo->cinfo, COL_INFO, "Routing control, initialization message");
proto_tree_add_item(tree, hf_dec_rt_src_node, tvb,
my_offset, 2, ENC_LITTLE_ENDIAN);
- offset += 2;
+ my_offset += 2;
proto_tree_add_item(tree, hf_dec_rt_tiinfo, tvb,
my_offset, 2, ENC_LITTLE_ENDIAN);
my_offset += 2;
@@ -603,7 +602,7 @@ do_verification_msg(
col_set_str(pinfo->cinfo, COL_INFO, "Routing control, verification message");
proto_tree_add_item(tree, hf_dec_rt_src_node, tvb,
my_offset, 2, ENC_LITTLE_ENDIAN);
- offset += 2;
+ my_offset += 2;
remainder_count = tvb_get_guint8(tvb, my_offset);
if (remainder_count != 0) {
proto_tree_add_item(tree, hf_dec_rt_fcnval, tvb,