Commit 688d3cb9 authored by Dafydd Harries's avatar Dafydd Harries
Browse files

local/: use nice_address_set_from_sockaddr_in ()

darcs-hash:20070314141606-c9803-06daed498ad21212956f0d5806c5ac7845628c09.gz
parent ff52edd7
......@@ -40,14 +40,7 @@ nice_list_local_interfaces ()
iface = g_slice_new0 (NiceInterface);
iface->name = g_strdup (i->ifa_name);
if (addr->sin_family == AF_INET)
nice_address_set_ipv4 (&iface->addr,
ntohl (addr->sin_addr.s_addr));
else
nice_address_set_ipv6 (&iface->addr,
(gchar *) &((struct sockaddr_in6 *) addr)->sin6_addr);
nice_address_set_from_sockaddr_in (&(iface->addr), addr);
ret = g_slist_append (ret, iface);
}
}
......
Supports Markdown
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