X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftokyotyrant.c;h=befbd50a91c52d1464e03934076ec7145c40b209;hb=72a76347831a848e6722d9147297a1e03c4c01d8;hp=678a341c1ceeaf15f24a708d12567c1b8ed92f15;hpb=9622e4d30f90e9eefca1d43fefc6bf85785074d3;p=collectd.git diff --git a/src/tokyotyrant.c b/src/tokyotyrant.c index 678a341c..befbd50a 100644 --- a/src/tokyotyrant.c +++ b/src/tokyotyrant.c @@ -23,7 +23,6 @@ #include "plugin.h" #include "common.h" #include "utils_cache.h" -#include "utils_parse_option.h" #include @@ -79,7 +78,7 @@ static int tt_config (const char *key, const char *value) return (0); } -static void printerr() +static void printerr (void) { int ecode = tcrdbecode(rdb); ERROR ("tokyotyrant plugin: error: %d, %s", @@ -107,8 +106,8 @@ static void tt_submit (gauge_t val, const char* type) static void tt_open_db (void) { - char* host = NULL; - int port = DEFAULT_PORT; + const char *host; + int port = DEFAULT_PORT; if (rdb != NULL) return;