[svn-commits] tilghman: trunk r111185 - /trunk/channels/misdn_config.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 26 15:34:05 CDT 2008


Author: tilghman
Date: Wed Mar 26 15:34:05 2008
New Revision: 111185

URL: http://svn.digium.com/view/asterisk?view=rev&rev=111185
Log:
Oops, missed one

Modified:
    trunk/channels/misdn_config.c

Modified: trunk/channels/misdn_config.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/misdn_config.c?view=diff&rev=111185&r1=111184&r2=111185
==============================================================================
--- trunk/channels/misdn_config.c (original)
+++ trunk/channels/misdn_config.c Wed Mar 26 15:34:05 2008
@@ -38,9 +38,6 @@
 #include "asterisk/pbx.h"
 #include "asterisk/strings.h"
 #include "asterisk/utils.h"
-
-#define AST_LOAD_CFG ast_config_load
-#define AST_DESTROY_CFG ast_config_destroy
 
 #define NO_DEFAULT "<>"
 #define NONE 0
@@ -1095,7 +1092,7 @@
 	struct ast_variable *v;
 	struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
 
-	if (!(cfg = AST_LOAD_CFG(config, config_flags))) {
+	if (!(cfg = ast_config_load2(config, "chan_misdn", config_flags))) {
 		ast_log(LOG_WARNING, "missing file: misdn.conf\n");
 		return -1;
 	} else if (cfg == CONFIG_STATUS_FILEUNCHANGED)
@@ -1149,7 +1146,7 @@
 	_fill_defaults();
 
 	misdn_cfg_unlock();
-	AST_DESTROY_CFG(cfg);
+	ast_config_destroy(cfg);
 
 	return 0;
 }




More information about the svn-commits mailing list