X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftokyotyrant.c;h=7c6d9129e709ee9b71a30a3a57848fc9fca56b06;hb=51181b899668ad2c232a152d6e5e787c4eb049cc;hp=b618ae323a3e1daec1db5a150c5f81721fdc7bf5;hpb=c1219a1c9db2e8400e2ee94b87f86ccd441485d5;p=collectd.git diff --git a/src/tokyotyrant.c b/src/tokyotyrant.c index b618ae32..7c6d9129 100644 --- a/src/tokyotyrant.c +++ b/src/tokyotyrant.c @@ -20,10 +20,10 @@ **/ #include "collectd.h" + #include "plugin.h" #include "common.h" #include "utils_cache.h" -#include "utils_parse_option.h" #include @@ -107,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;