zookeeper plugin: remove unneccesary cast
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 15 Jul 2016 20:13:47 +0000 (22:13 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 15 Jul 2016 20:13:47 +0000 (22:13 +0200)
src/zookeeper.c

index 89ec6d2..860e93d 100644 (file)
@@ -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;