diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-04-24 10:27:07 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-04-24 10:27:07 +0100 |
commit | 238293c2dc9033aaf2301eb4a0d29e7c24cb0400 (patch) | |
tree | 28bd06dd79c1ae550bd52bf53d816c69d20f23e2 | |
parent | a2c3519c851a7311976e1e99c7619cf6eae90081 (diff) | |
download | libnice-238293c2dc9033aaf2301eb4a0d29e7c24cb0400.tar.gz |
agent: Add a missing cast when compiling without HAVE_GETIFADDRS
-rw-r--r-- | agent/interfaces.c | 2 |
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); |