summaryrefslogtreecommitdiff
path: root/mib
diff options
context:
space:
mode:
Diffstat (limited to 'mib')
-rw-r--r--mib/parse-compat.inc.c6
-rw-r--r--mib/parse.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/mib/parse-compat.inc.c b/mib/parse-compat.inc.c
index 56b42d4..8f8fc0d 100644
--- a/mib/parse-compat.inc.c
+++ b/mib/parse-compat.inc.c
@@ -56,7 +56,7 @@ static int initialized = 0;
#define TRUE 1
/* No need to implement these */
-#define DEBUGMSGTL
+#define DEBUGMSGTL(x)
#define set_function(tp)
/* Just return the tree head */
@@ -102,7 +102,7 @@ netsnmp_ds_get_int(int dummy, int var)
#define netsnmp_ds_set_boolean(a, b, c)
#define netsnmp_ds_toggle_boolean(a, b)
-static int
+static void
snmp_log(int level, const char* msg, ...)
{
va_list ap;
@@ -116,7 +116,7 @@ snmp_log(int level, const char* msg, ...)
}
/* Only used to open files */
-static int
+static void
snmp_log_perror(const char* file)
{
rb_message(LOG_ERR, "couldn't open file: %s", file);
diff --git a/mib/parse.c b/mib/parse.c
index d4987d3..aeb449f 100644
--- a/mib/parse.c
+++ b/mib/parse.c
@@ -63,6 +63,7 @@ SOFTWARE.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <ctype.h>
#include <dirent.h>
#include <syslog.h>