Module: sip-router
Branch: tirpi/cfg_framework_multivalue
Commit: f850beca4860a363bfee12c9bb1654d941845ea7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f850bec…
Author: Miklos Tirpak <miklos(a)iptel.org>
Committer: Miklos Tirpak <miklos(a)iptel.org>
Date: Tue Sep 14 16:16:50 2010 +0200
cfg_db: updated to the cfg framework changes
The module writes the default configuration only.
---
modules/cfg_db/cfg_db.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/cfg_db/cfg_db.c b/modules/cfg_db/cfg_db.c
index c392408..de0b71b 100644
--- a/modules/cfg_db/cfg_db.c
+++ b/modules/cfg_db/cfg_db.c
@@ -195,13 +195,13 @@ static int find_cfg_var(str *group_name, char *def_name, db_res_t
*transl_res) {
/* read and set cfg var */
switch (rec->fld[0].type) {
case DB_STR:
- if (cfg_set_now(cfg_ctx, group_name, &def_name_s, &rec->fld[0].v.lstr,
CFG_VAR_STR) < 0) goto err;
+ if (cfg_set_now(cfg_ctx, group_name, NULL /* group id */, &def_name_s,
&rec->fld[0].v.lstr, CFG_VAR_STR) < 0) goto err;
break;
case DB_CSTR:
- if (cfg_set_now_string(cfg_ctx, group_name, &def_name_s, rec->fld[0].v.cstr)
< 0) goto err;
+ if (cfg_set_now_string(cfg_ctx, group_name, NULL /* group id */, &def_name_s,
rec->fld[0].v.cstr) < 0) goto err;
break;
case DB_INT:
- if (cfg_set_now_int(cfg_ctx, group_name, &def_name_s, rec->fld[0].v.int4)
< 0) goto err;
+ if (cfg_set_now_int(cfg_ctx, group_name, NULL /* group id */, &def_name_s,
rec->fld[0].v.int4) < 0) goto err;
break;
default:
ERR(MODULE_NAME": unexpected field type (%d), table:'%s',
field:'%s'\n",