Commit 00521622 authored by Youness Alaoui's avatar Youness Alaoui
Browse files

removing unused variable ret in nice_address_to_string

parent 834dcb91
...@@ -247,15 +247,12 @@ nice_address_copy_to_sockaddr (const NiceAddress *addr, ...@@ -247,15 +247,12 @@ nice_address_copy_to_sockaddr (const NiceAddress *addr,
NICEAPI_EXPORT void NICEAPI_EXPORT void
nice_address_to_string (const NiceAddress *addr, gchar *dst) nice_address_to_string (const NiceAddress *addr, gchar *dst)
{ {
const gchar *ret = NULL;
switch (addr->s.addr.sa_family) { switch (addr->s.addr.sa_family) {
case AF_INET: case AF_INET:
ret = inet_ntop (AF_INET, &addr->s.ip4.sin_addr, dst, INET_ADDRSTRLEN); inet_ntop (AF_INET, &addr->s.ip4.sin_addr, dst, INET_ADDRSTRLEN);
break; break;
case AF_INET6: case AF_INET6:
ret = inet_ntop (AF_INET6, &addr->s.ip6.sin6_addr, dst, inet_ntop (AF_INET6, &addr->s.ip6.sin6_addr, dst, INET6_ADDRSTRLEN);
INET6_ADDRSTRLEN);
break; break;
default: default:
g_return_if_reached (); g_return_if_reached ();
......
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