[sr-dev] git:master:5097954c: rls: pass dbf structure by pointer instead of value to function param
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jan 4 09:41:30 CET 2018
Module: kamailio
Branch: master
Commit: 5097954ce5dbbd1094a022f3ae014c77e389aecb
URL: https://github.com/kamailio/kamailio/commit/5097954ce5dbbd1094a022f3ae014c77e389aecb
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-01-04T09:40:54+01:00
rls: pass dbf structure by pointer instead of value to function param
---
Modified: src/modules/rls/rls.c
Modified: src/modules/rls/rls_db.c
---
Diff: https://github.com/kamailio/kamailio/commit/5097954ce5dbbd1094a022f3ae014c77e389aecb.diff
Patch: https://github.com/kamailio/kamailio/commit/5097954ce5dbbd1094a022f3ae014c77e389aecb.patch
---
diff --git a/src/modules/rls/rls.c b/src/modules/rls/rls.c
index 83e86173d7..cda6085bac 100644
--- a/src/modules/rls/rls.c
+++ b/src/modules/rls/rls.c
@@ -119,7 +119,7 @@ extern subs_t* rls_search_shtable(shtable_t htable,str callid,str to_tag,
extern int rls_delete_shtable(shtable_t htable,unsigned int hash_code, subs_t* subs);
extern int rls_update_shtable(shtable_t htable,unsigned int hash_code,
subs_t* subs, int type);
-extern void rls_update_db_subs_timer(db1_con_t *db,db_func_t dbf, shtable_t hash_table,
+extern void rls_update_db_subs_timer(db1_con_t *db,db_func_t *dbf, shtable_t hash_table,
int htable_size, int no_lock, handle_expired_func_t handle_expired_func);
static int rls_rpc_init(void);
@@ -837,7 +837,7 @@ void rlsubs_table_update(unsigned int ticks,void *param)
LM_ERR("sql use table failed\n");
return;
}
- pres_update_db_subs_timer(rls_db, rls_dbf, rls_table, hash_size,
+ pres_update_db_subs_timer(rls_db, &rls_dbf, rls_table, hash_size,
no_lock, handle_expired_record);
}
diff --git a/src/modules/rls/rls_db.c b/src/modules/rls/rls_db.c
index 5e88dea6cb..fe10092b69 100644
--- a/src/modules/rls/rls_db.c
+++ b/src/modules/rls/rls_db.c
@@ -100,7 +100,7 @@ int rls_update_shtable(shtable_t htable,unsigned int hash_code,
/******************************************************************************/
-void rls_update_db_subs_timer(db1_con_t *db,db_func_t dbf, shtable_t hash_table,
+void rls_update_db_subs_timer(db1_con_t *db,db_func_t *dbf, shtable_t hash_table,
int htable_size, int no_lock, handle_expired_func_t handle_expired_func)
{
LM_ERR( "rls_update_db_subs_timer shouldn't be called in RLS_DB_ONLY mode\n" );
More information about the sr-dev
mailing list