aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tcap.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-04-16 14:28:22 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-04-16 14:28:22 +0000
commit10a67c2028385e4feae61d57772a336dfa764458 (patch)
treefa749c6bbb0e63e931386d4c960b11792670a0e3 /epan/dissectors/packet-tcap.c
parent1c4a7f8f3027cf8e105dab453a6728b710492850 (diff)
sccp_ssn_table is not used so remove it. The handoff function does not need to be called after preference changes so stop doing that. Found this on the hunt for bug 2053's cause but it shouldn't (AFAICS) be related.
svn path=/trunk/; revision=25080
Diffstat (limited to 'epan/dissectors/packet-tcap.c')
-rw-r--r--epan/dissectors/packet-tcap.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/epan/dissectors/packet-tcap.c b/epan/dissectors/packet-tcap.c
index d6297d21ca..bb38ccda9a 100644
--- a/epan/dissectors/packet-tcap.c
+++ b/epan/dissectors/packet-tcap.c
@@ -293,8 +293,6 @@ static proto_tree * tcap_stat_tree=NULL;
static dissector_handle_t data_handle;
static dissector_handle_t ansi_tcap_handle;
-static dissector_table_t sccp_ssn_table;
-
static void raz_tcap_private(struct tcap_private_t * p_tcap_private);
static int dissect_tcap_param(asn1_ctx_t *actx, proto_tree *tree, tvbuff_t *tvb, int offset);
static int dissect_tcap_UserInformation(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_);
@@ -2219,7 +2217,7 @@ static void dissect_UniDialoguePDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_
/*--- End of included file: packet-tcap-fn.c ---*/
-#line 149 "packet-tcap-template.c"
+#line 147 "packet-tcap-template.c"
@@ -2331,15 +2329,8 @@ void
proto_reg_handoff_tcap(void)
{
- static gboolean prefs_initialized = FALSE;
-
- if (! prefs_initialized) {
- sccp_ssn_table = find_dissector_table("sccp.ssn");
- prefs_initialized = TRUE;
- }
-
data_handle = find_dissector("data");
- ansi_tcap_handle = find_dissector("ansi_tcap");
+ ansi_tcap_handle = find_dissector("ansi_tcap");
/*--- Included file: packet-tcap-dis-tab.c ---*/
@@ -2349,7 +2340,7 @@ proto_reg_handoff_tcap(void)
/*--- End of included file: packet-tcap-dis-tab.c ---*/
-#line 271 "packet-tcap-template.c"
+#line 262 "packet-tcap-template.c"
}
static void init_tcap(void);
@@ -2912,7 +2903,7 @@ proto_register_tcap(void)
"", HFILL }},
/*--- End of included file: packet-tcap-hfarr.c ---*/
-#line 333 "packet-tcap-template.c"
+#line 324 "packet-tcap-template.c"
};
/* Setup protocol subtree array */
@@ -2977,7 +2968,7 @@ proto_register_tcap(void)
&ett_tcap_ErrorCode,
/*--- End of included file: packet-tcap-ettarr.c ---*/
-#line 343 "packet-tcap-template.c"
+#line 334 "packet-tcap-template.c"
};
/*static enum_val_t tcap_options[] = {
@@ -2995,7 +2986,7 @@ proto_register_tcap(void)
proto_register_field_array(proto_tcap, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
- tcap_module = prefs_register_protocol(proto_tcap, proto_reg_handoff_tcap);
+ tcap_module = prefs_register_protocol(proto_tcap, NULL);
#if 0
prefs_register_enum_preference(tcap_module, "standard", "ITU TCAP standard",