From 1c13e99efb119f75ddbd6a0aa4798cd27accbff5 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 12 Jan 2024 20:02:14 +0100 Subject: [PATCH] topoh: prefix global variable --- src/modules/topoh/topoh_mod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/topoh/topoh_mod.c b/src/modules/topoh/topoh_mod.c index 02098b1c1b0..fe63bf88c7f 100644 --- a/src/modules/topoh/topoh_mod.c +++ b/src/modules/topoh/topoh_mod.c @@ -95,7 +95,7 @@ int _th_use_mode = 0; struct str_hash_table *th_socket_hash_table; -sanity_api_t scb; +static sanity_api_t _tph_scb; int th_msg_received(sr_event_param_t *evp); int th_msg_sent(sr_event_param_t *evp); @@ -186,7 +186,7 @@ static int mod_init(void) } if(th_sanity_checks != 0) { - if(sanity_load_api(&scb) < 0) { + if(sanity_load_api(&_tph_scb) < 0) { LM_ERR("cannot bind to sanity module\n"); goto error; } @@ -515,7 +515,7 @@ int th_msg_received(sr_event_param_t *evp) th_cookie_value.len = 2; if(msg.first_line.type == SIP_REQUEST) { if(th_sanity_checks != 0) { - if(scb.check_defaults(&msg) < 1) { + if(_tph_scb.check_defaults(&msg) < 1) { LM_ERR("sanity checks failed\n"); goto done; }