diff options
author | Dafydd Harries <dafydd.harries@collabora.co.uk> | 2007-03-14 14:16:00 +0000 |
---|---|---|
committer | Dafydd Harries <dafydd.harries@collabora.co.uk> | 2007-03-14 14:16:00 +0000 |
commit | 688d3cb94a9f70ee0670f019be49d22fb0ee1142 (patch) | |
tree | 88422b8d58c942a6af4873cdc28872dc85cbde05 /local | |
parent | ff52edd716f545ce9c7a99c1867dc895b0b9d672 (diff) | |
download | libnice-688d3cb94a9f70ee0670f019be49d22fb0ee1142.tar.gz |
local/: use nice_address_set_from_sockaddr_in ()
darcs-hash:20070314141606-c9803-06daed498ad21212956f0d5806c5ac7845628c09.gz
Diffstat (limited to 'local')
-rw-r--r-- | local/local.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/local/local.c b/local/local.c index a46c065..74b4fe7 100644 --- a/local/local.c +++ b/local/local.c @@ -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); } } |