diff options
author | Stef Walter <stef@memberwebs.com> | 2006-01-28 19:22:08 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-01-28 19:22:08 +0000 |
commit | 9c8b4f051ae56fa7ec4b30ed45836e9715fb3cc9 (patch) | |
tree | d191917f121b2cf8d158d6bd61287752218d0986 /mib | |
parent | 7996df8d6567eec464f5d4c427515daefe8e2373 (diff) |
Fix compile time warnings.
Diffstat (limited to 'mib')
-rw-r--r-- | mib/parse-compat.inc.c | 6 | ||||
-rw-r--r-- | mib/parse.c | 1 |
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> |