aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>2012-02-06 22:06:28 +0000
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>2012-02-06 22:06:28 +0000
commitebfc8f99ef36db759aefba7cdca671e8a88b4440 (patch)
tree0022128148cd8101c5db26a242c028e2b515944e
parent3fb79fd85bec71403ee5f8e2ba8f2d0095426593 (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40896 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r--epan/dissectors/packet-epl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-epl.c b/epan/dissectors/packet-epl.c
index e2f00d70c2..4eb22852ba 100644
--- a/epan/dissectors/packet-epl.c
+++ b/epan/dissectors/packet-epl.c
@@ -476,7 +476,7 @@ static gint dissect_epl_sdo_command_read_by_index(proto_tree *epl_tree, tvbuff_t
static const gchar* decode_epl_address(guchar adr);
-static gboolean dissect_epl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
+static gint dissect_epl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
/* Initialize the protocol and registered fields */
@@ -661,7 +661,7 @@ gboolean show_soc_flags = FALSE;
/* Code to actually dissect the packets */
-static gboolean
+static int
dissect_epl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
guint8 epl_mtyp, epl_src, epl_dest;
@@ -813,7 +813,7 @@ dissect_epl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
return FALSE;
}
- return TRUE;
+ return offset;
}
@@ -1480,7 +1480,6 @@ dissect_epl_sdo_command(proto_tree *epl_tree, tvbuff_t *tvb, packet_info *pinfo,
guint16 segment_size;
offset += 1;
- segmented = FALSE;
command_id = tvb_get_guint8(tvb, offset + 2);