aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_config_odbc.c
diff options
context:
space:
mode:
authoranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-22 21:05:52 +0000
committeranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-22 21:05:52 +0000
commit9c895d32faea27058bc558ad071d237ee8e6354a (patch)
tree153b2ea2ca3ec81839bfb32305633878d023fb08 /res/res_config_odbc.c
parent2422869fddb763a54fec74d2a626446a696a0aa6 (diff)
repeal config prototype changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4879 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_config_odbc.c')
-rwxr-xr-xres/res_config_odbc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c
index 246dd80a8..e487d54e1 100755
--- a/res/res_config_odbc.c
+++ b/res/res_config_odbc.c
@@ -410,7 +410,7 @@ static int update_odbc(const char *database, const char *table, const char *keyf
return -1;
}
-static struct ast_config *config_odbc(const char *database, const char *table, const char *file, struct ast_config *new_config_s, struct ast_category **new_cat_p, int recur)
+static struct ast_config *config_odbc (const char *database, const char *table, const char *file, struct ast_config *new_config_s, struct ast_category **new_cat_p, struct ast_variable **new_v_p, int recur)
{
struct ast_config *new;
struct ast_variable *cur_v, *new_v;
@@ -480,7 +480,7 @@ static struct ast_config *config_odbc(const char *database, const char *table, c
cat_started = 0;
cur_cat = *new_cat_p;
- cur_v = NULL;
+ cur_v = *new_v_p;
if (cur_cat)
cat_started = 1;
@@ -490,7 +490,7 @@ static struct ast_config *config_odbc(const char *database, const char *table, c
while (res != SQL_NO_DATA) {
if (!strcmp (var_name, "#include") && recur < MAX_INCLUDE_LEVEL) {
- config_odbc(database, table, var_val, new, &cur_cat, recur + 1);
+ config_odbc(database, table, var_val, new, &cur_cat, &cur_v, recur + 1);
} else {
if (strcmp (last, category) || last_cat_metric != cat_metric) {
strncpy(last, category, sizeof(last) - 1);