summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-04-24 10:27:07 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-04-24 10:27:07 +0100
commit238293c2dc9033aaf2301eb4a0d29e7c24cb0400 (patch)
tree28bd06dd79c1ae550bd52bf53d816c69d20f23e2
parenta2c3519c851a7311976e1e99c7619cf6eae90081 (diff)
downloadlibnice-238293c2dc9033aaf2301eb4a0d29e7c24cb0400.tar.gz
agent: Add a missing cast when compiling without HAVE_GETIFADDRS
-rw-r--r--agent/interfaces.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/interfaces.c b/agent/interfaces.c
index 15bfa3c..9a0e69c 100644
--- a/agent/interfaces.c
+++ b/agent/interfaces.c
@@ -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);