X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftokyotyrant.c;h=befbd50a91c52d1464e03934076ec7145c40b209;hb=71bbf854d3e6f8c6d6c3582527263bb01a3a7e04;hp=7fa621bfa4e9d9d0ea4cd196e80c7bcd9b42c957;hpb=0a63e4493d92f7d739a1849bc65d4e971b047004;p=collectd.git diff --git a/src/tokyotyrant.c b/src/tokyotyrant.c index 7fa621bf..befbd50a 100644 --- a/src/tokyotyrant.c +++ b/src/tokyotyrant.c @@ -78,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", @@ -106,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;