From: Ruben Kerkhof Date: Sat, 5 Mar 2016 16:21:49 +0000 (+0100) Subject: tokyotyrant plugin: constify X-Git-Tag: collectd-5.6.0~415 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=19cbe81d334beed6f648adecb4faba13b0e520dc;p=collectd.git tokyotyrant plugin: constify --- diff --git a/src/tokyotyrant.c b/src/tokyotyrant.c index f04a5fce..befbd50a 100644 --- a/src/tokyotyrant.c +++ b/src/tokyotyrant.c @@ -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;