aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/nbap
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-11-04 21:42:02 +0000
committerBill Meier <wmeier@newsguy.com>2008-11-04 21:42:02 +0000
commitf35324d0fd73a8fbbfc922e91823ef6b3a1ae4ec (patch)
treea93ec5381270aa4229984585ea3ec7320ccdcf33 /asn1/nbap
parenta3d5cbf5d82252d097dc4e637fc218a491d30bc5 (diff)
Minor cleanup mostly related to proto_reg_handoff
Remove code for unused handles; Localize handles (in proto_reg_handoff) which need not be global; Localize (in proto_reg_handoff) "saved prefs"; Use find_dissector instead of create_dissector_handle as appropriate; Use gboolean for "initialized" flag in proto_reg_handoff. svn path=/trunk/; revision=26693
Diffstat (limited to 'asn1/nbap')
-rw-r--r--asn1/nbap/packet-nbap-template.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/asn1/nbap/packet-nbap-template.c b/asn1/nbap/packet-nbap-template.c
index dbf13961ee..1151c10b0f 100644
--- a/asn1/nbap/packet-nbap-template.c
+++ b/asn1/nbap/packet-nbap-template.c
@@ -51,8 +51,6 @@
#include "packet-nbap-val.h"
-static dissector_handle_t nbap_handle = NULL;
-
/* Initialize the protocol and registered fields */
static int proto_nbap = -1;
@@ -153,7 +151,6 @@ void proto_register_nbap(void) {
/* Register dissector */
register_dissector("nbap", dissect_nbap, proto_nbap);
- nbap_handle = find_dissector("nbap");
/* Register dissector tables */
nbap_ies_dissector_table = register_dissector_table("nbap.ies", "NBAP-PROTOCOL-IES", FT_UINT32, BASE_DEC);
@@ -169,7 +166,9 @@ void proto_register_nbap(void) {
void
proto_reg_handoff_nbap(void)
{
+ dissector_handle_t nbap_handle;
+ nbap_handle = find_dissector("nbap");
/*dissector_add("sctp.ppi", Add ppid here, nbap_handle); */
dissector_add("sctp.port", 0, nbap_handle);