From e29f497cf007bae88b852fcc5e6c8ce2dbef66e5 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 27 Jan 2006 23:42:46 +0000 Subject: Make the MIB directory configurable. --- mib/parse-compat.inc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mib') 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"); -- cgit v1.2.3