aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sebek.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-03-02 11:06:52 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-03-02 11:06:52 +0000
commitc6fc195c47e10665e1595c70d2889bd85327ddb8 (patch)
treec1bdaeb24a9d87e09dc4af592423c7c3cebf1c1c /epan/dissectors/packet-sebek.c
parent2e79d142c799c7bc7c8bb0bcedbe9e77812ae633 (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41310
Diffstat (limited to 'epan/dissectors/packet-sebek.c')
-rw-r--r--epan/dissectors/packet-sebek.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-sebek.c b/epan/dissectors/packet-sebek.c
index 413e88a3bb..58b4dedabe 100644
--- a/epan/dissectors/packet-sebek.c
+++ b/epan/dissectors/packet-sebek.c
@@ -118,7 +118,7 @@ static gint ett_sebek = -1;
* pinfo - packet info
* proto_tree - resolved protocol tree
*/
-static void
+static int
dissect_sebek(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_tree *sebek_tree;
@@ -272,6 +272,7 @@ dissect_sebek(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
}
+ return offset;
}
void
@@ -350,6 +351,6 @@ proto_reg_handoff_sebek(void)
{
dissector_handle_t sebek_handle;
- sebek_handle = create_dissector_handle(dissect_sebek, proto_sebek);
+ sebek_handle = new_create_dissector_handle(dissect_sebek, proto_sebek);
dissector_add_uint("udp.port", UDP_PORT_SEBEK, sebek_handle);
}