Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 6 Feb 2012 22:06:28 +0000 (22:06 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 6 Feb 2012 22:06:28 +0000 (22:06 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40896 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-epl.c

index e2f00d70c2de70692df2c119a56f7ccf724eda50..4eb22852ba4d6d2520b7db35212c8192053893b4 100644 (file)
@@ -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);