aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/q932
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/q932
parenta3d5cbf5d82252d097dc4e637fc218a491d30bc5 (diff)
downloadwireshark-f35324d0fd73a8fbbfc922e91823ef6b3a1ae4ec.tar.gz
wireshark-f35324d0fd73a8fbbfc922e91823ef6b3a1ae4ec.tar.bz2
wireshark-f35324d0fd73a8fbbfc922e91823ef6b3a1ae4ec.zip
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/q932')
-rw-r--r--asn1/q932/packet-q932-template.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/asn1/q932/packet-q932-template.c b/asn1/q932/packet-q932-template.c
index 4f68a74909..88d469f274 100644
--- a/asn1/q932/packet-q932-template.c
+++ b/asn1/q932/packet-q932-template.c
@@ -60,11 +60,7 @@ static gint ett_q932_ie = -1;
static rose_ctx_t q932_rose_ctx;
/* Subdissectors */
-static dissector_handle_t data_handle = NULL;
-static dissector_handle_t q932_ros_handle = NULL;
-
-/* Gloabl variables */
-
+static dissector_handle_t q932_ros_handle;
#define Q932_IE_EXTENDED_FACILITY 0x0D
#define Q932_IE_FACILITY 0x1C
@@ -335,7 +331,6 @@ void proto_reg_handoff_q932(void) {
dissector_add("q931.ie", (0x00 << 8) | Q932_IE_NOTIFICATION_INDICATOR, q932_ie_handle);
q932_ros_handle = find_dissector("q932.ros");
- data_handle = find_dissector("data");
}
/*---------------------------------------------------------------------------*/