summaryrefslogtreecommitdiff
path: root/mib/parse-compat.inc.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-27 23:42:46 +0000
committerStef Walter <stef@memberwebs.com>2006-01-27 23:42:46 +0000
commite29f497cf007bae88b852fcc5e6c8ce2dbef66e5 (patch)
treecf5b21ff6455552d2eb3e76a624797c32079328f /mib/parse-compat.inc.c
parentcadd830e5aca1f208541ea6d38da5b4a863db5cc (diff)
Make the MIB directory configurable.
Diffstat (limited to 'mib/parse-compat.inc.c')
-rw-r--r--mib/parse-compat.inc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mib/parse-compat.inc.c b/mib/parse-compat.inc.c
index c520c7a..56b42d4 100644
--- a/mib/parse-compat.inc.c
+++ b/mib/parse-compat.inc.c
@@ -140,7 +140,7 @@ clear_tree_flags(struct tree *tp)
}
void
-rb_mib_init(int warnings)
+rb_mib_init(const char* dir, int warnings)
{
if(initialized)
return;
@@ -148,7 +148,7 @@ rb_mib_init(int warnings)
with_warnings = warnings;
init_mib_internals();
- add_mibdir("/usr/share/snmp/mibs");
+ add_mibdir(dir);
read_all_mibs();
rb_messagex(LOG_DEBUG, "loaded all MIB files");