aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-enttec.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-02-06 22:05:47 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-02-06 22:05:47 +0000
commit7437dc8d845e0fcfc88e60ddfbe32f4e58c87bba (patch)
treea9b8422d6554cd7d4b2c7ee2c9ad441952f3ff02 /epan/dissectors/packet-enttec.c
parent3716b464d57b9ab52fb9a0bc27d8dd0e50410b18 (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40895
Diffstat (limited to 'epan/dissectors/packet-enttec.c')
-rw-r--r--epan/dissectors/packet-enttec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-enttec.c b/epan/dissectors/packet-enttec.c
index 8f03db77db..ec1266f71f 100644
--- a/epan/dissectors/packet-enttec.c
+++ b/epan/dissectors/packet-enttec.c
@@ -342,7 +342,7 @@ dissect_enttec_reset(tvbuff_t *tvb _U_, guint offset, proto_tree *tree _U_)
return offset;
}
-static void
+static int
dissect_enttec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
gint offset = 0;
@@ -397,6 +397,7 @@ dissect_enttec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
}
+ return offset;
}
void
@@ -546,7 +547,7 @@ proto_reg_handoff_enttec(void) {
static guint tcp_port_enttec;
if(!enttec_initialized) {
- enttec_handle = create_dissector_handle(dissect_enttec,proto_enttec);
+ enttec_handle = new_create_dissector_handle(dissect_enttec,proto_enttec);
enttec_initialized = TRUE;
} else {
dissector_delete_uint("udp.port",udp_port_enttec,enttec_handle);