aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/qsig
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/qsig
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/qsig')
-rw-r--r--asn1/qsig/packet-qsig-template.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/asn1/qsig/packet-qsig-template.c b/asn1/qsig/packet-qsig-template.c
index f65aa3a7ed..0cb0a96937 100644
--- a/asn1/qsig/packet-qsig-template.c
+++ b/asn1/qsig/packet-qsig-template.c
@@ -312,11 +312,7 @@ static gint ett_qsig_unknown_extension = -1;
/* Preferences */
-/* Subdissectors */
-static dissector_handle_t q931_handle = NULL;
-static dissector_handle_t data_handle = NULL;
-
-/* Gloabl variables */
+/* Global variables */
static const char *extension_oid = NULL;
/* Dissector tables */
@@ -643,13 +639,13 @@ void proto_register_qsig(void) {
/*--- proto_reg_handoff_qsig ------------------------------------------------*/
void proto_reg_handoff_qsig(void) {
int i;
+ dissector_handle_t q931_handle;
dissector_handle_t qsig_arg_handle;
dissector_handle_t qsig_res_handle;
dissector_handle_t qsig_err_handle;
dissector_handle_t qsig_ie_handle;
q931_handle = find_dissector("q931");
- data_handle = find_dissector("data");
qsig_arg_handle = new_create_dissector_handle(dissect_qsig_arg, proto_qsig);
qsig_res_handle = new_create_dissector_handle(dissect_qsig_res, proto_qsig);