X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftokyotyrant.c;h=7c6d9129e709ee9b71a30a3a57848fc9fca56b06;hb=b55658bb615f6d33e70791d2a7d2a0f2114598cc;hp=f04a5fceb3a51b9ae3b9738d505f5ee977b896f3;hpb=092e0c8763ef268918fb8117be9579d375ac8cfc;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;