Commit 00521622 authored by Youness Alaoui's avatar Youness Alaoui

removing unused variable ret in nice_address_to_string

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