summaryrefslogtreecommitdiff
path: root/mib
diff options
context:
space:
mode:
Diffstat (limited to 'mib')
-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");