From 4489345f2549883041e4a2b0b0157cda16fbe2e1 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 15 Jul 2016 22:13:47 +0200 Subject: [PATCH] zookeeper plugin: remove unneccesary cast --- src/zookeeper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zookeeper.c b/src/zookeeper.c index 89ec6d26..860e93d7 100644 --- a/src/zookeeper.c +++ b/src/zookeeper.c @@ -111,7 +111,7 @@ static int zookeeper_connect (void) const char *host; const char *port; - memset ((void *) &ai_hints, '\0', sizeof (ai_hints)); + memset (&ai_hints, '\0', sizeof (ai_hints)); ai_hints.ai_family = AF_UNSPEC; ai_hints.ai_socktype = SOCK_STREAM; -- 2.11.0