From b6044e96fe7860f20a3964b962627451b78439dc Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 5 Apr 2006 05:14:17 +0000 Subject: MIB fixes. --- daemon/rrdbotd.c | 2 +- mib/mib-parser.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/daemon/rrdbotd.c b/daemon/rrdbotd.c index e2b0248..a2976a5 100644 --- a/daemon/rrdbotd.c +++ b/daemon/rrdbotd.c @@ -226,7 +226,7 @@ main(int argc, char* argv[]) g_state.timeout = DEFAULT_TIMEOUT; /* Parse the arguments nicely */ - while((ch = getopt(argc, argv, "c:d:Mp:r:t:w:V")) != -1) + while((ch = getopt(argc, argv, "c:d:m:Mp:r:t:w:V")) != -1) { switch(ch) { diff --git a/mib/mib-parser.c b/mib/mib-parser.c index 7d17973..9e36442 100644 --- a/mib/mib-parser.c +++ b/mib/mib-parser.c @@ -176,7 +176,6 @@ mib_init() add_mibdir(mib_directory); read_all_mibs(); - warnx("loaded all MIB files"); initialized = 1; } @@ -258,10 +257,8 @@ mib_get_node(struct asn_oid* oid) void mib_uninit() { - if(initialized) { + if(initialized) unload_all_mibs(); - warnx("unloaded all MIB files"); - } initialized = 0; } -- cgit v1.2.3