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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19cbe81d334beed6f648adecb4faba13b0e520dc;p=thirdparty%2Fcollectd.git tokyotyrant plugin: constify --- diff --git a/src/tokyotyrant.c b/src/tokyotyrant.c index f04a5fceb..befbd50a9 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;