Commit 238293c2 authored by Philip Withnall's avatar Philip Withnall

agent: Add a missing cast when compiling without HAVE_GETIFADDRS

parent a2c3519c
......@@ -328,7 +328,7 @@ nice_interfaces_get_local_ips (gboolean include_loopback)
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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment