s3: fix simple "incompatible pointer type" build warning
[kai/samba.git] / source3 / winbindd / winbindd_cm.c
index 05c39f8f2b6be8029540e1a96b31faf2ef8dcd27..9268542da6f71ff8829fb8d664a160773c2af4fa 100644 (file)
@@ -1064,7 +1064,7 @@ static bool add_sockaddr_to_array(TALLOC_CTX *mem_ctx,
        }
 
        (*addrs)[*num] = *pss;
-       set_sockaddr_port(&(*addrs)[*num], port);
+       set_sockaddr_port((struct sockaddr *)&(*addrs)[*num], port);
 
        *num += 1;
        return True;