Don't declare functions inside functions - not all C compilers support
that. svn path=/trunk/; revision=12301
This commit is contained in:
parent
abd16b297f
commit
c2d2988e4f
|
@ -70,6 +70,8 @@ Tcap_Standard_Type tcap_standard = ITU_TCAP_STANDARD;
|
||||||
static range_t global_ssn_range;
|
static range_t global_ssn_range;
|
||||||
static range_t ssn_range;
|
static range_t ssn_range;
|
||||||
|
|
||||||
|
static dissector_handle_t tcap_handle;
|
||||||
|
|
||||||
/* saved pinfo */
|
/* saved pinfo */
|
||||||
static packet_info *g_pinfo = NULL;
|
static packet_info *g_pinfo = NULL;
|
||||||
static proto_tree *g_tcap_tree = NULL;
|
static proto_tree *g_tcap_tree = NULL;
|
||||||
|
@ -2880,26 +2882,27 @@ proto_register_tcap(void)
|
||||||
This format is required because a script is used to find these routines and
|
This format is required because a script is used to find these routines and
|
||||||
create the code that calls these routines.
|
create the code that calls these routines.
|
||||||
*/
|
*/
|
||||||
void
|
|
||||||
proto_reg_handoff_tcap(void)
|
|
||||||
{
|
|
||||||
static dissector_handle_t tcap_handle;
|
|
||||||
static gboolean prefs_initialized = FALSE;
|
|
||||||
|
|
||||||
static void range_delete_callback(guint32 ssn)
|
static void range_delete_callback(guint32 ssn)
|
||||||
{
|
{
|
||||||
if (ssn) {
|
if (ssn) {
|
||||||
dissector_delete("sccp.ssn", ssn, tcap_handle);
|
dissector_delete("sccp.ssn", ssn, tcap_handle);
|
||||||
dissector_delete("sua.ssn", ssn, tcap_handle);
|
dissector_delete("sua.ssn", ssn, tcap_handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static void range_add_callback(guint32 ssn)
|
|
||||||
{
|
static void range_add_callback(guint32 ssn)
|
||||||
|
{
|
||||||
if (ssn) {
|
if (ssn) {
|
||||||
dissector_add("sccp.ssn", ssn, tcap_handle);
|
dissector_add("sccp.ssn", ssn, tcap_handle);
|
||||||
dissector_add("sua.ssn", ssn, tcap_handle);
|
dissector_add("sua.ssn", ssn, tcap_handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
proto_reg_handoff_tcap(void)
|
||||||
|
{
|
||||||
|
static gboolean prefs_initialized = FALSE;
|
||||||
|
|
||||||
if (!prefs_initialized) {
|
if (!prefs_initialized) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue