Code

tokyotyrant plugin: constify
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 16:21:49 +0000 (17:21 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 16:21:49 +0000 (17:21 +0100)
src/tokyotyrant.c

index f04a5fceb3a51b9ae3b9738d505f5ee977b896f3..befbd50a91c52d1464e03934076ec7145c40b209 100644 (file)
@@ -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;