From 799d6fd057b0c20a7692a1181d811a8ff3a88d04 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 15 Nov 2015 16:51:45 -0500 Subject: create_dissector_handle -> new_create_dissector_handle Picking off "easy" dissectors that only have one or two exit points at most. Change-Id: I96aa9cf53533cbb07105aa400d42922baf3016b3 Reviewed-on: https://code.wireshark.org/review/11860 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/dissectors/packet-irc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-irc.c') diff --git a/epan/dissectors/packet-irc.c b/epan/dissectors/packet-irc.c index d9eee7867f..a1ba34a190 100644 --- a/epan/dissectors/packet-irc.c +++ b/epan/dissectors/packet-irc.c @@ -444,8 +444,8 @@ dissect_irc_response(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int of } } -static void -dissect_irc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_irc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_tree *irc_tree, *ti; gint offset = 0; @@ -494,6 +494,7 @@ dissect_irc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } offset = next_offset; } + return tvb_captured_length(tvb); } void @@ -571,7 +572,7 @@ proto_reg_handoff_irc(void) { dissector_handle_t irc_handle; - irc_handle = create_dissector_handle(dissect_irc, proto_irc); + irc_handle = new_create_dissector_handle(dissect_irc, proto_irc); dissector_add_uint("tcp.port", TCP_PORT_IRC, irc_handle); dissector_add_uint("tcp.port", TCP_PORT_DIRCPROXY, irc_handle); } -- cgit v1.2.3