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 /daemon/config.c | |
parent | 7996df8d6567eec464f5d4c427515daefe8e2373 (diff) |
Fix compile time warnings.
Diffstat (limited to 'daemon/config.c')
-rw-r--r-- | daemon/config.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/daemon/config.c b/daemon/config.c index 8c20c4a..ce6e397 100644 --- a/daemon/config.c +++ b/daemon/config.c @@ -42,8 +42,10 @@ #include <syslog.h> #include <dirent.h> #include <string.h> +#include <err.h> #include "rrdbotd.h" +#include "config-parser.h" /* * These routines parse the configuration files and setup the in memory @@ -279,7 +281,7 @@ parse_item(const char* field, char* uri, config_ctx *ctx) { rb_message(LOG_WARNING, "couldn't resolve host address (ignoring): %s", host); free(rhost); - return; + return NULL; } /* And add it to the list */ @@ -305,6 +307,8 @@ parse_item(const char* field, char* uri, config_ctx *ctx) /* And add it to the list */ ritem->next = ctx->items; ctx->items = ritem; + + return ritem; } static void @@ -349,7 +353,6 @@ config_value(const char* header, const char* name, char* value, /* If it starts with "field." */ else if(strncmp(name, CONFIG_FIELD, KL(CONFIG_FIELD)) == 0) { - rb_poller* poll; const char* field; const char* t; |