Update osplookup documentation to use commas instead of pipes.
[asterisk/asterisk.git] / res / res_snmp.c
index 05c483e..71a79f2 100644 (file)
@@ -27,8 +27,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 #include "asterisk/channel.h"
 #include "asterisk/module.h"
 
 #include "asterisk/channel.h"
 #include "asterisk/module.h"
-#include "asterisk/logger.h"
-#include "asterisk/options.h"
 
 #include "snmp/agent.h"
 
 
 #include "snmp/agent.h"
 
@@ -48,11 +46,12 @@ static int load_config(void)
 {
        struct ast_variable *var;
        struct ast_config *cfg;
 {
        struct ast_variable *var;
        struct ast_config *cfg;
+       struct ast_flags config_flags = { 0 };
        char *cat;
 
        res_snmp_enabled = 0;
        res_snmp_agentx_subagent = 1;
        char *cat;
 
        res_snmp_enabled = 0;
        res_snmp_agentx_subagent = 1;
-       cfg = ast_config_load("res_snmp.conf");
+       cfg = ast_config_load("res_snmp.conf", config_flags);
        if (!cfg) {
                ast_log(LOG_WARNING, "Could not load res_snmp.conf\n");
                return 0;
        if (!cfg) {
                ast_log(LOG_WARNING, "Could not load res_snmp.conf\n");
                return 0;