summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-sccp.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-14 09:23:33 -0500
committerMichael Mann <mmann78@netscape.net>2015-11-14 21:54:27 +0000
commit28ea58251c04562cc0670e57bf073dc6966e73e6 (patch)
treeabe57292f17b280056a73ee7cfdc94abdcaaaaf3 /epan/dissectors/packet-sccp.c
parent13101020e12eb21e8464a3c4eb4fc2fe51409235 (diff)
downloadwireshark-28ea58251c04562cc0670e57bf073dc6966e73e6.tar.gz
register_dissector -> new_register_dissector
Picking off "easy" dissectors that only have one or two exit points at most. This concludes a "first pass" over the dissector directory. Change-Id: If5ce5484214be50fe541cba478da1de62e354297 Reviewed-on: https://code.wireshark.org/review/11830 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-sccp.c')
-rw-r--r--epan/dissectors/packet-sccp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-sccp.c b/epan/dissectors/packet-sccp.c
index 229e674068..aaf4649af5 100644
--- a/epan/dissectors/packet-sccp.c
+++ b/epan/dissectors/packet-sccp.c
@@ -3326,8 +3326,8 @@ dissect_sccp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *sccp_tree,
return offset;
}
-static void
-dissect_sccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_sccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_item *sccp_item = NULL;
proto_tree *sccp_tree = NULL;
@@ -3400,7 +3400,7 @@ dissect_sccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* dissect the message */
dissect_sccp_message(tvb, pinfo, sccp_tree, tree);
-
+ return tvb_captured_length(tvb);
}
/*** SccpUsers Table **/
@@ -4076,7 +4076,7 @@ proto_register_sccp(void)
proto_sccp = proto_register_protocol("Signalling Connection Control Part",
"SCCP", "sccp");
- register_dissector("sccp", dissect_sccp, proto_sccp);
+ new_register_dissector("sccp", dissect_sccp, proto_sccp);
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_sccp, hf, array_length(hf));