diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-11-04 21:42:02 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-11-04 21:42:02 +0000 |
commit | f35324d0fd73a8fbbfc922e91823ef6b3a1ae4ec (patch) | |
tree | a93ec5381270aa4229984585ea3ec7320ccdcf33 /asn1/h323/packet-h323-template.c | |
parent | a3d5cbf5d82252d097dc4e637fc218a491d30bc5 (diff) | |
download | wireshark-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/h323/packet-h323-template.c')
-rw-r--r-- | asn1/h323/packet-h323-template.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/asn1/h323/packet-h323-template.c b/asn1/h323/packet-h323-template.c index 44f2b816ad..f5fbe75ae3 100644 --- a/asn1/h323/packet-h323-template.c +++ b/asn1/h323/packet-h323-template.c @@ -91,9 +91,6 @@ void gef_ctx_update_key(gef_ctx_t *gefx) { ); } -/* Subdissectors */ -static dissector_handle_t q931_handle = NULL; - /* Initialize the protocol and registered fields */ int proto_h323 = -1; #include "packet-h323-hf.c" @@ -129,6 +126,8 @@ void proto_register_h323(void) { /*--- proto_reg_handoff_h323 -------------------------------------------*/ void proto_reg_handoff_h323(void) { + dissector_handle_t q931_handle; + q931_handle = find_dissector("q931"); /* H.323, Annex M1, Tunnelling of signalling protocols (QSIG) in H.323 */ |