agent: Add a missing cast when compiling without HAVE_GETIFADDRS
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 24 Apr 2015 09:27:07 +0000 (10:27 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 24 Apr 2015 09:27:07 +0000 (10:27 +0100)
agent/interfaces.c

index 15bfa3c..9a0e69c 100644 (file)
@@ -328,7 +328,7 @@ nice_interfaces_get_local_ips (gboolean include_loopback)
       else
         nice_debug ("Ignoring loopback interface");
     } else {
-      if (nice_interfaces_is_private_ip (sa)) {
+      if (nice_interfaces_is_private_ip ((struct sockaddr *) sa)) {
         ips = add_ip_to_list (ips, g_strdup (inet_ntoa (sa->sin_addr)), TRUE);
       } else {
         ips = add_ip_to_list (ips, g_strdup (inet_ntoa (sa->sin_addr)), FALSE);