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/pres | |
parent | a3d5cbf5d82252d097dc4e637fc218a491d30bc5 (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/pres')
-rw-r--r-- | asn1/pres/packet-pres-template.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/asn1/pres/packet-pres-template.c b/asn1/pres/packet-pres-template.c index 5cc95221de..ebed644121 100644 --- a/asn1/pres/packet-pres-template.c +++ b/asn1/pres/packet-pres-template.c @@ -57,9 +57,6 @@ static struct SESSION_DATA_STRUCTURE* session = NULL; proto_tree *global_tree = NULL; packet_info *global_pinfo = NULL; -/* dissector for data */ -static dissector_handle_t data_handle; - static const char *abstract_syntax_name_oid; static guint32 presentation_context_identifier; @@ -345,6 +342,4 @@ void proto_reg_handoff_pres(void) { /* register_ber_oid_dissector("0.4.0.0.1.1.1.1", dissect_pres, proto_pres, "itu-t(0) identified-organization(4) etsi(0) mobileDomain(0) gsm-Network(1) abstractSyntax(1) pres(1) version1(1)"); */ - data_handle = find_dissector("data"); - } |