diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-08-08 11:29:41 +0100 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-08-21 14:33:10 -0400 |
commit | 8abc39749c081ec5b9b8f7743ed5826e3b6bc6b7 (patch) | |
tree | 785852493d82f00a902b05cc1d2d332d60677f51 /agent/agent.c | |
parent | ee109a910281d2824877235df589752edf3ea948 (diff) | |
download | libnice-8abc39749c081ec5b9b8f7743ed5826e3b6bc6b7.tar.gz |
agent: Tidy up a few variable references
This simplifies the code a little. No functional changes.
Diffstat (limited to 'agent/agent.c')
-rw-r--r-- | agent/agent.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/agent/agent.c b/agent/agent.c index 63c182d..836aedd 100644 --- a/agent/agent.c +++ b/agent/agent.c @@ -1718,20 +1718,19 @@ pseudo_tcp_socket_write_packet (PseudoTcpSocket *psocket, NiceAddress *addr; sock = component->selected_pair.local->sockptr; + addr = &component->selected_pair.remote->addr; if (nice_debug_is_enabled ()) { gchar tmpbuf[INET6_ADDRSTRLEN]; - nice_address_to_string (&component->selected_pair.remote->addr, tmpbuf); + nice_address_to_string (addr, tmpbuf); nice_debug ( "Agent %p : s%d:%d: sending %d bytes on socket %p (FD %d) to [%s]:%d", component->agent, component->stream->id, component->id, len, sock->fileno, g_socket_get_fd (sock->fileno), tmpbuf, - nice_address_get_port (&component->selected_pair.remote->addr)); + nice_address_get_port (addr)); } - addr = &component->selected_pair.remote->addr; - if (nice_socket_send (sock, addr, len, buffer)) return WR_SUCCESS; } else { |