Code

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 89ec6d267dd9c98f7a6a1b3d0401578e4343bd65..860e93d768e927dffa81a18a614f9cabda82bb42 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;