[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16532 - gnunet-gtk/src/lib
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16532 - gnunet-gtk/src/lib |
Date: |
Mon, 15 Aug 2011 14:48:31 +0200 |
Author: grothoff
Date: 2011-08-15 14:48:31 +0200 (Mon, 15 Aug 2011)
New Revision: 16532
Modified:
gnunet-gtk/src/lib/eventloop.c
Log:
some code cleanup
Modified: gnunet-gtk/src/lib/eventloop.c
===================================================================
--- gnunet-gtk/src/lib/eventloop.c 2011-08-15 12:45:54 UTC (rev 16531)
+++ gnunet-gtk/src/lib/eventloop.c 2011-08-15 12:48:31 UTC (rev 16532)
@@ -422,7 +422,7 @@
}
}
}
- if (wfds != NULL && GNUNET_CONTAINER_slist_count (wfds->handles) > 0)
+ if ( (wfds != NULL) && (GNUNET_CONTAINER_slist_count (wfds->handles) >
0) )
{
ml->cached_poll_array[fd_counter].fd = (intptr_t) ml->hEventPipeWrite;
ml->cached_poll_array[fd_counter].events = G_IO_OUT;
@@ -452,7 +452,7 @@
}
GNUNET_CONTAINER_slist_iter_destroy (t);
- if (rfds != NULL && rfds->sds.fd_count > 0)
+ if ( (rfds != NULL) && (rfds->sds.fd_count > 0) )
{
#if DEBUG_NETWORK
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -466,7 +466,7 @@
fd_counter += 1;
sock_read = rfds->sds.fd_count;
}
- if (wfds != NULL && wfds->sds.fd_count > 0)
+ if ( (wfds != NULL) && (wfds->sds.fd_count > 0) )
{
int wakeup = 0;
#if DEBUG_NETWORK
@@ -496,7 +496,7 @@
fd_counter += 1;
sock_write = wfds->sds.fd_count;
}
- if (efds != NULL && efds->sds.fd_count > 0)
+ if ( (efds != NULL) && (efds->sds.fd_count > 0) )
{
#if DEBUG_NETWORK
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -507,7 +507,7 @@
ml->cached_poll_array[fd_counter].events = G_IO_ERR;
for (i = 0; i < efds->sds.fd_count; i++)
WSAEventSelect (efds->sds.fd_array[i], ml->hEventException, FD_OOB
| FD_CLOSE);
- fd_counter += 1;
+ fd_counter++;
sock_err = efds->sds.fd_count;
}
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16532 - gnunet-gtk/src/lib,
gnunet <=