X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fzookeeper.c;h=1eed1fb35d1b02281ea050cc12d9cffa250e2270;hb=5c2993e4121feae745551be182221b31bc23ff97;hp=abdbf20f3361d257165d4697346e98213caeca11;hpb=594aa45c1df64eadae54c415524f3a267c12d7f8;p=collectd.git diff --git a/src/zookeeper.c b/src/zookeeper.c index abdbf20f..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; @@ -198,11 +198,6 @@ static int zookeeper_query (char *buffer, size_t buffer_size) } buffer_fill += (size_t) status; - if (status == 0) - { - /* done reading from the socket */ - break; - } } /* while (recv) */ status = 0;