From: Ruben Kerkhof Date: Fri, 4 Mar 2016 20:08:30 +0000 (+0100) Subject: zookeeper plugin: constify X-Git-Tag: collectd-5.6.0~439 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0b37c599e9299091655b1c1f0e6ed4dd1b7ddf4f;p=collectd.git zookeeper plugin: constify --- diff --git a/src/zookeeper.c b/src/zookeeper.c index 539795c0..1eed1fb3 100644 --- a/src/zookeeper.c +++ b/src/zookeeper.c @@ -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;