s4-ipv6: fixed a warning
authorAndrew Tridgell <tridge@samba.org>
Thu, 12 May 2011 10:27:01 +0000 (12:27 +0200)
committerAndrew Tridgell <tridge@samba.org>
Mon, 6 Jun 2011 02:26:09 +0000 (12:26 +1000)
source4/lib/socket/interface.c

index 9ae658da3efd97f23c9a8a143b72cf465aca775d..0de44c151709712732c96caf6e395fe5f25a532c 100644 (file)
@@ -302,7 +302,7 @@ void load_interface_list(TALLOC_CTX *mem_ctx, const char **interfaces, struct in
                        DEBUG(0,("ERROR: Could not determine network interfaces, you must use a interfaces config line\n"));
                }
                for (i=0;i<total_probed;i++) {
-                       if (!is_loopback_addr(&ifaces[i].ip)) {
+                       if (!is_loopback_addr((struct sockaddr *)&ifaces[i].ip)) {
                                add_interface(mem_ctx, &ifaces[i], local_interfaces);
                        }
                }