diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-11-12 16:32:11 -0500 |
---|---|---|
committer | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-11-12 16:32:11 -0500 |
commit | 005216220d9e1ccc020b2d65fed4e8d9689de0c6 (patch) | |
tree | 008df4061fa6264b6a27a585048492cce050095c /agent/address.c | |
parent | 834dcb91f4b7020b367e8359e05ea546ac7bae0e (diff) | |
download | libnice-005216220d9e1ccc020b2d65fed4e8d9689de0c6.tar.gz |
removing unused variable ret in nice_address_to_string
Diffstat (limited to 'agent/address.c')
-rw-r--r-- | agent/address.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/agent/address.c b/agent/address.c index cb46979..340ef95 100644 --- a/agent/address.c +++ b/agent/address.c @@ -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 (); |