summaryrefslogtreecommitdiff
path: root/daemon/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/config.c')
-rw-r--r--daemon/config.c7
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;