aboutsummaryrefslogtreecommitdiff
path: root/src/lib/eventloop.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 12:48:31 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 12:48:31 +0000
commit370bb4ad5397b04139cdb89f4d7c6466b8118f31 (patch)
treea6af92b4b3709e644939e55610da7ea4ed173d7a /src/lib/eventloop.c
parent22b4ebf9d7bba7176baf9e426c953cc7276aa15a (diff)
downloadgnunet-gtk-370bb4ad5397b04139cdb89f4d7c6466b8118f31.tar.gz
gnunet-gtk-370bb4ad5397b04139cdb89f4d7c6466b8118f31.zip
some code cleanup
Diffstat (limited to 'src/lib/eventloop.c')
-rw-r--r--src/lib/eventloop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/eventloop.c b/src/lib/eventloop.c
index 82168e3a..5815c210 100644
--- a/src/lib/eventloop.c
+++ b/src/lib/eventloop.c
@@ -422,7 +422,7 @@ gnunet_gtk_select (void *cls,
422 } 422 }
423 } 423 }
424 } 424 }
425 if (wfds != NULL && GNUNET_CONTAINER_slist_count (wfds->handles) > 0) 425 if ( (wfds != NULL) && (GNUNET_CONTAINER_slist_count (wfds->handles) > 0) )
426 { 426 {
427 ml->cached_poll_array[fd_counter].fd = (intptr_t) ml->hEventPipeWrite; 427 ml->cached_poll_array[fd_counter].fd = (intptr_t) ml->hEventPipeWrite;
428 ml->cached_poll_array[fd_counter].events = G_IO_OUT; 428 ml->cached_poll_array[fd_counter].events = G_IO_OUT;
@@ -452,7 +452,7 @@ gnunet_gtk_select (void *cls,
452 } 452 }
453 GNUNET_CONTAINER_slist_iter_destroy (t); 453 GNUNET_CONTAINER_slist_iter_destroy (t);
454 454
455 if (rfds != NULL && rfds->sds.fd_count > 0) 455 if ( (rfds != NULL) && (rfds->sds.fd_count > 0) )
456 { 456 {
457#if DEBUG_NETWORK 457#if DEBUG_NETWORK
458 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 458 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -466,7 +466,7 @@ gnunet_gtk_select (void *cls,
466 fd_counter += 1; 466 fd_counter += 1;
467 sock_read = rfds->sds.fd_count; 467 sock_read = rfds->sds.fd_count;
468 } 468 }
469 if (wfds != NULL && wfds->sds.fd_count > 0) 469 if ( (wfds != NULL) && (wfds->sds.fd_count > 0) )
470 { 470 {
471 int wakeup = 0; 471 int wakeup = 0;
472#if DEBUG_NETWORK 472#if DEBUG_NETWORK
@@ -496,7 +496,7 @@ gnunet_gtk_select (void *cls,
496 fd_counter += 1; 496 fd_counter += 1;
497 sock_write = wfds->sds.fd_count; 497 sock_write = wfds->sds.fd_count;
498 } 498 }
499 if (efds != NULL && efds->sds.fd_count > 0) 499 if ( (efds != NULL) && (efds->sds.fd_count > 0) )
500 { 500 {
501#if DEBUG_NETWORK 501#if DEBUG_NETWORK
502 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 502 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -507,7 +507,7 @@ gnunet_gtk_select (void *cls,
507 ml->cached_poll_array[fd_counter].events = G_IO_ERR; 507 ml->cached_poll_array[fd_counter].events = G_IO_ERR;
508 for (i = 0; i < efds->sds.fd_count; i++) 508 for (i = 0; i < efds->sds.fd_count; i++)
509 WSAEventSelect (efds->sds.fd_array[i], ml->hEventException, FD_OOB | FD_CLOSE); 509 WSAEventSelect (efds->sds.fd_array[i], ml->hEventException, FD_OOB | FD_CLOSE);
510 fd_counter += 1; 510 fd_counter++;
511 sock_err = efds->sds.fd_count; 511 sock_err = efds->sds.fd_count;
512 } 512 }
513 break; 513 break;