Code

zookeeper plugin: constify
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Mar 2016 20:08:30 +0000 (21:08 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Mar 2016 20:08:30 +0000 (21:08 +0100)
src/zookeeper.c

index 539795c0321563ea8a1179a50470bc4dde28453a..1eed1fb35d1b02281ea050cc12d9cffa250e2270 100644 (file)
@@ -108,8 +108,8 @@ static int zookeeper_connect (void)
        struct addrinfo ai_hints;
        struct addrinfo *ai;
        struct addrinfo *ai_list;
-       char *host;
-       char *port;
+       const char *host;
+       const char *port;
 
        memset ((void *) &ai_hints, '\0', sizeof (ai_hints));
        ai_hints.ai_family   = AF_UNSPEC;