Module: sip-router
Branch: tirpi/cfg_framework_multivalue
Commit: 72c10ee1d2f8debdefea7ea5163c4ab530a45bb7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=72c10ee…
Author: Miklos Tirpak <miklos(a)iptel.org>
Committer: Miklos Tirpak <miklos(a)iptel.org>
Date: Tue Sep 14 16:12:55 2010 +0200
modules_k/kex: updated to the cfg framework changes
The debug value is set in the default "core" group.
---
modules_k/kex/mi_core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/kex/mi_core.c b/modules_k/kex/mi_core.c
index 36f5b93..b7c20af 100644
--- a/modules_k/kex/mi_core.c
+++ b/modules_k/kex/mi_core.c
@@ -328,7 +328,7 @@ static struct mi_root *mi_debug(struct mi_root *cmd, void *param)
return init_mi_tree( 400, MI_SSTR(MI_BAD_PARM));
set = 1;
} else {
- if(cfg_get_by_name(_kex_cfg_ctx, &group_name, &var_name, &vval,
+ if(cfg_get_by_name(_kex_cfg_ctx, &group_name, NULL /* group id */, &var_name,
&vval,
&val_type)!=0)
return init_mi_tree( 500, MI_SSTR(MI_INTERNAL_ERR));
new_debug = (int)(long)vval;
@@ -346,7 +346,7 @@ static struct mi_root *mi_debug(struct mi_root *cmd, void *param)
}
if(set==1) {
- cfg_set_now(_kex_cfg_ctx, &group_name, &var_name,
+ cfg_set_now(_kex_cfg_ctx, &group_name, NULL /* group id */, &var_name,
(void *)(long)new_debug, CFG_VAR_INT);
}