aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-btamp.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-btamp.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-btamp.c')
-rw-r--r--epan/dissectors/packet-btamp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-btamp.c b/epan/dissectors/packet-btamp.c
index 4a044f8cef..ee2727531e 100644
--- a/epan/dissectors/packet-btamp.c
+++ b/epan/dissectors/packet-btamp.c
@@ -63,6 +63,9 @@ static gint ett_btamp_caps = -1;
static gint ett_btamp_controller_entry = -1;
static gint ett_btamp_controller_list = -1;
+static dissector_handle_t btamp_handle;
+
+
static const value_string command_code_vals[] = {
{ 0x01, "AMP Command Reject" },
{ 0x02, "AMP Discover Request" },
@@ -636,7 +639,7 @@ proto_register_btamp(void)
/* Register the protocol name and description */
proto_btamp = proto_register_protocol("Bluetooth AMP Packet", "BT AMP", "btamp");
- new_register_dissector("btamp", dissect_btamp, proto_btamp);
+ btamp_handle = new_register_dissector("btamp", dissect_btamp, proto_btamp);
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_btamp, hf, array_length(hf));
@@ -646,9 +649,6 @@ proto_register_btamp(void)
void
proto_reg_handoff_btamp(void)
{
- dissector_handle_t btamp_handle;
-
- btamp_handle = find_dissector("btamp");
dissector_add_uint("btl2cap.cid", BTL2CAP_FIXED_CID_AMP_MAN, btamp_handle);
}