From 9c8b4f051ae56fa7ec4b30ed45836e9715fb3cc9 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 28 Jan 2006 19:22:08 +0000 Subject: Fix compile time warnings. --- mib/parse-compat.inc.c | 6 +++--- mib/parse.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'mib') 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 #include #include +#include #include #include -- cgit v1.2.3