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. --- daemon/snmp-help.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'daemon/snmp-help.c') diff --git a/daemon/snmp-help.c b/daemon/snmp-help.c index 8a54bb1..4ae7cb1 100644 --- a/daemon/snmp-help.c +++ b/daemon/snmp-help.c @@ -48,6 +48,7 @@ /* Whether we print warnings when loading MIBs or not */ extern int g_mib_warnings; +extern const char* g_mib_directory; static int parse_mixed_mib(const char* mib, struct asn_oid* oid) @@ -84,7 +85,7 @@ parse_mixed_mib(const char* mib, struct asn_oid* oid) if(*t || sub < 0) { /* Only initializes first time around */ - rb_mib_init(g_mib_warnings); + rb_mib_init(g_mib_directory, g_mib_warnings); /* * If we haven't parsed anything yet, try a symbolic @@ -154,7 +155,7 @@ rb_snmp_parse_mib(const char* mib, struct snmp_value* value) /* Next try a symolic search */ if(ret == -1) { - rb_mib_init(g_mib_warnings); + rb_mib_init(g_mib_directory, g_mib_warnings); n = rb_mib_lookup(mib); if(n == NULL) -- cgit v1.2.3