X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftokyotyrant.c;h=7c6d9129e709ee9b71a30a3a57848fc9fca56b06;hb=08cf386cb8aa711ef4043d9139d464b38188a44b;hp=6618dc1a9422d4d3053039c0315f669cef4a65e6;hpb=5528a3df5cc55d083b5aa1926843e810467070a5;p=collectd.git diff --git a/src/tokyotyrant.c b/src/tokyotyrant.c index 6618dc1a..7c6d9129 100644 --- a/src/tokyotyrant.c +++ b/src/tokyotyrant.c @@ -20,14 +20,10 @@ **/ #include "collectd.h" + #include "plugin.h" #include "common.h" #include "utils_cache.h" -#include "utils_parse_option.h" - -#include -#include -#include #include @@ -83,7 +79,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", @@ -111,8 +107,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;