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 539795c..1eed1fb 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;