summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}