X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftokyotyrant.c;h=7c6d9129e709ee9b71a30a3a57848fc9fca56b06;hb=448627953cde2f7b3b138f53f4f2c62f0d48b726;hp=f04a5fceb3a51b9ae3b9738d505f5ee977b896f3;hpb=22651d8d4dc49e24bbac2cd34e0642dcf3639c97;p=collectd.git diff --git a/src/tokyotyrant.c b/src/tokyotyrant.c index f04a5fce..7c6d9129 100644 --- a/src/tokyotyrant.c +++ b/src/tokyotyrant.c @@ -20,6 +20,7 @@ **/ #include "collectd.h" + #include "plugin.h" #include "common.h" #include "utils_cache.h" @@ -106,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;