diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2014-03-03 12:12:03 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-03-06 21:58:07 +0000 |
commit | f4591ef55dfb6216394c0d60c149ece0ec70bbac (patch) | |
tree | dcc04902a3be5d26b1e48c8c67994394abaf67fb /epan/dissectors/packet-btsdp.c | |
parent | 78ff87e655ee899a93c831581fcb005cb9ef955b (diff) |
Bluetooth: Avoid using find_dissector()
Also remove SVN $Id$ lines.
Change-Id: I4f2925e6ad8dcfe4a62d879a2cef44447f8ae916
Reviewed-on: https://code.wireshark.org/review/476
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-btsdp.c')
-rw-r--r-- | epan/dissectors/packet-btsdp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-btsdp.c b/epan/dissectors/packet-btsdp.c index 25b2180d67..133d219eae 100644 --- a/epan/dissectors/packet-btsdp.c +++ b/epan/dissectors/packet-btsdp.c @@ -345,6 +345,8 @@ static expert_field ei_btsdp_continuation_state_none = EI_INIT; static expert_field ei_btsdp_continuation_state_large = EI_INIT; static expert_field ei_data_element_value_large = EI_INIT; +static dissector_handle_t btsdp_handle; + static wmem_tree_t *tid_requests = NULL; static wmem_tree_t *continuation_states = NULL; static wmem_tree_t *record_handle_services = NULL; @@ -5641,7 +5643,7 @@ proto_register_btsdp(void) }; proto_btsdp = proto_register_protocol("Bluetooth SDP Protocol", "BT SDP", "btsdp"); - new_register_dissector("btsdp", dissect_btsdp, proto_btsdp); + btsdp_handle = new_register_dissector("btsdp", dissect_btsdp, proto_btsdp); proto_register_field_array(proto_btsdp, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); @@ -5664,9 +5666,6 @@ proto_register_btsdp(void) void proto_reg_handoff_btsdp(void) { - dissector_handle_t btsdp_handle; - - btsdp_handle = find_dissector("btsdp"); dissector_add_uint("btl2cap.psm", BTL2CAP_PSM_SDP, btsdp_handle); dissector_add_handle("btl2cap.cid", btsdp_handle); } |