aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-epl.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-02-06 22:06:28 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-02-06 22:06:28 +0000
commit777540e39f61e237436e6c860ca91a19382fe867 (patch)
tree0022128148cd8101c5db26a242c028e2b515944e /epan/dissectors/packet-epl.c
parent7437dc8d845e0fcfc88e60ddfbe32f4e58c87bba (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40896
Diffstat (limited to 'epan/dissectors/packet-epl.c')
-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);