Commit f1a115c1 authored by Youness Alaoui's avatar Youness Alaoui

Fixes to trailing spaces

darcs-hash:20080422192524-4f0f6-e16e7dddec8c9ecdfa196536e6cc940bad934b32.gz
parent a3885c16
......@@ -1250,7 +1250,7 @@ nice_agent_recv (
socket = component_find_udp_socket_by_fd (component, j);
g_assert (socket);
len = _nice_agent_recv (agent, stream, component, socket,
buf_len, buf);
......@@ -1339,11 +1339,11 @@ nice_agent_poll_read (
for (k = stream->components; k; k = k->next)
{
Component *component = k->data;
for (j = component->sockets; j; j = j->next)
{
NiceUDPSocket *sockptr = j->data;
FD_SET (sockptr->fileno, &fds);
max_fd = MAX (sockptr->fileno, max_fd);
}
......@@ -1398,7 +1398,7 @@ nice_agent_poll_read (
break;
}
}
if (socket == NULL || stream == NULL || component == NULL)
break;
......@@ -1420,9 +1420,9 @@ nice_agent_poll_read (
/**
* Sends a data payload over a stream component.
*
*
* @pre component state MUST be NICE_COMPONENT_STATE_READY,
* or as a special case, in any state if component was
* or as a special case, in any state if component was
* in READY state before and was then restarted
*
* @return number of bytes sent, or negative error code
......
......@@ -424,10 +424,10 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
CandidatePair *p = &component->selected_pair;
struct sockaddr sockaddr;
int res;
memset (&sockaddr, 0, sizeof (sockaddr));
nice_address_copy_to_sockaddr (&p->remote->addr, &sockaddr);
res = stun_bind_keepalive (p->local->sockptr->fileno,
&sockaddr, sizeof (sockaddr));
g_debug ("stun_bind_keepalive for pair %p res %d (%s).", p, res, strerror (res));
......@@ -437,7 +437,7 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
component->media_after_tick = FALSE;
}
}
/* case 2: connectivity establishment ongoing
* (ref ICE sect 4.1.1.4 "Keeping Candidates Alive" ID-19) */
for (i = agent->streams; i; i = i->next) {
......@@ -445,7 +445,7 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
if (stream->conncheck_state == NICE_CHECKLIST_RUNNING) {
for (i = stream->conncheck_list; i ; i = i->next) {
CandidateCheckPair *p = i->data;
if (p->traffic_after_tick != TRUE) {
g_debug ("resending STUN-CC to keep the candidate alive (pair %p).", p);
conn_check_send (agent, p);
......@@ -454,7 +454,7 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
}
}
}
if (errors) {
g_debug ("%s: stopping keepalive timer", G_STRFUNC);
goto done;
......
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