aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-btbnep.c
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2014-03-03 12:12:03 +0100
committerAnders Broman <a.broman58@gmail.com>2014-03-06 21:58:07 +0000
commitf4591ef55dfb6216394c0d60c149ece0ec70bbac (patch)
treedcc04902a3be5d26b1e48c8c67994394abaf67fb /epan/dissectors/packet-btbnep.c
parent78ff87e655ee899a93c831581fcb005cb9ef955b (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-btbnep.c')
-rw-r--r--epan/dissectors/packet-btbnep.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-btbnep.c b/epan/dissectors/packet-btbnep.c
index 49126b3045..928256d3c2 100644
--- a/epan/dissectors/packet-btbnep.c
+++ b/epan/dissectors/packet-btbnep.c
@@ -70,6 +70,8 @@ static gint ett_addr = -1;
static expert_field ei_btbnep_src_not_group_address = EI_INIT;
+static dissector_handle_t btbnep_handle;
+
static gboolean top_dissect = TRUE;
static dissector_handle_t eth_handle;
@@ -522,7 +524,7 @@ proto_register_btbnep(void)
};
proto_btbnep = proto_register_protocol("Bluetooth BNEP Protocol", "BT BNEP", "btbnep");
- new_register_dissector("btbnep", dissect_btbnep, proto_btbnep);
+ btbnep_handle = new_register_dissector("btbnep", dissect_btbnep, proto_btbnep);
proto_register_field_array(proto_btbnep, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
@@ -542,9 +544,6 @@ proto_register_btbnep(void)
void
proto_reg_handoff_btbnep(void)
{
- dissector_handle_t btbnep_handle;
-
- btbnep_handle = find_dissector("btbnep");
eth_handle = find_dissector("eth");
data_handle = find_dissector("data");
ethertype_handle = find_dissector("ethertype");