Fix some type-punned warnings
[ira/wip.git] / source3 / winbindd / winbindd_wins.c
index f9ba13ffdad3f9b8a1fb60ccf23f0bf1169f7853..82bf199f3c66d8c30b54ea2bbc2759bef9222c99 100644 (file)
@@ -59,7 +59,7 @@ static int wins_lookup_open_socket_in(void)
 
        /* now we've got a socket - we need to bind it */
 
 
        /* now we've got a socket - we need to bind it */
 
-       if (bind(res, (struct sockaddr * ) &sock,sizeof(sock)) < 0) {
+       if (bind(res, (struct sockaddr *)(void *)&sock, sizeof(sock)) < 0) {
                close(res);
                return(-1);
        }
                close(res);
                return(-1);
        }