aboutsummaryrefslogtreecommitdiff
path: root/src/lib/eventloop.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 13:09:02 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 13:09:02 +0000
commit67707a4c242906cdaa3619f2a2c916fbb7f0e6b8 (patch)
treeb9af818d4f417220682c60784a82d3d77881b405 /src/lib/eventloop.c
parente4b785c0d8e16afd1f14a4a67e4c82fe0c857b4e (diff)
downloadgnunet-gtk-67707a4c242906cdaa3619f2a2c916fbb7f0e6b8.tar.gz
gnunet-gtk-67707a4c242906cdaa3619f2a2c916fbb7f0e6b8.zip
some code cleanup
Diffstat (limited to 'src/lib/eventloop.c')
-rw-r--r--src/lib/eventloop.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/eventloop.c b/src/lib/eventloop.c
index bf24e4ab..7cc2e2e7 100644
--- a/src/lib/eventloop.c
+++ b/src/lib/eventloop.c
@@ -90,12 +90,6 @@ struct GNUNET_GTK_MainLoop
90 */ 90 */
91 guint cached_poll_array_size; 91 guint cached_poll_array_size;
92 92
93 /**
94 * Return value from last g_main_context_query call.
95 */
96 guint poll_array_active;
97
98
99#if WINDOWS 93#if WINDOWS
100 /** 94 /**
101 * Array to hold pipe handles during a select() call 95 * Array to hold pipe handles during a select() call
@@ -527,7 +521,6 @@ gnunet_gtk_select (void *cls,
527 resize_cached_poll_array (ml, 521 resize_cached_poll_array (ml,
528 fd_counter + need_gfds); 522 fd_counter + need_gfds);
529 } 523 }
530 ml->poll_array_active = fd_counter + need_gfds;
531 524
532 if (timeout.rel_value != GNUNET_TIME_UNIT_FOREVER_REL.rel_value) 525 if (timeout.rel_value != GNUNET_TIME_UNIT_FOREVER_REL.rel_value)
533 { 526 {
@@ -556,7 +549,9 @@ gnunet_gtk_select (void *cls,
556 fd_counter, need_gfds, delay); 549 fd_counter, need_gfds, delay);
557#endif 550#endif
558 551
559 poll_result = g_poll (ml->cached_poll_array, fd_counter + need_gfds, delay); 552 poll_result = g_poll (ml->cached_poll_array,
553 fd_counter + need_gfds,
554 delay);
560 555
561#if DEBUG_NETWORK 556#if DEBUG_NETWORK
562 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 557 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,