diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-15 08:00:10 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-16 03:50:05 +0000 |
commit | bbdd89b973353a0df1d98d884c38f3832670bfea (patch) | |
tree | 9b992f923f565af2fcab30902508a191de85ca53 /epan/dissectors/packet-a21.c | |
parent | 6012ba8f008bfba24fd44ce7a2a3055572453dce (diff) |
create_dissector_handle -> new_create_dissector_handle
Picking off "easy" dissectors that only have one or two exit points at most.
Change-Id: Ie514f126352e7598acc4f7c38db9c61d105d5e48
Reviewed-on: https://code.wireshark.org/review/11850
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-a21.c')
-rw-r--r-- | epan/dissectors/packet-a21.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-a21.c b/epan/dissectors/packet-a21.c index f47364b786..98a143cf6f 100644 --- a/epan/dissectors/packet-a21.c +++ b/epan/dissectors/packet-a21.c @@ -632,8 +632,8 @@ dissect_a21_ie_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *top_tree, p } -static void -dissect_a21(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_a21(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { guint8 message_type; int offset = 0; @@ -673,7 +673,7 @@ dissect_a21(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) dissect_a21_ie_common(tvb, pinfo, tree, a21_tree, offset, message_type); - + return tvb_captured_length(tvb); } void proto_register_a21(void) @@ -963,7 +963,7 @@ void proto_reg_handoff_a21(void) if (!a21_prefs_initialized) { - a21_handle = create_dissector_handle(dissect_a21, proto_a21); + a21_handle = new_create_dissector_handle(dissect_a21, proto_a21); gcsna_handle = find_dissector("gcsna"); dissector_add_uint("udp.port", a21_udp_port, a21_handle); a21_prefs_initialized = TRUE; |