summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-04-05 05:14:17 +0000
committerStef Walter <stef@memberwebs.com>2006-04-05 05:14:17 +0000
commitb6044e96fe7860f20a3964b962627451b78439dc (patch)
tree5abe17b4d2e6d6830a961e0c3982535cabaca3a2
parentd3e86b52b596480a07978a12462c1fe97df16c77 (diff)
MIB fixes.
-rw-r--r--daemon/rrdbotd.c2
-rw-r--r--mib/mib-parser.c5
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;
}