diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 12:18:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 12:18:52 +0000 |
commit | 7787447a4fc9b0f273e780d9c768fed6feceffdc (patch) | |
tree | 3db2f552052a5f95bcb4fc7b9d4dbf724bf26ac0 | |
parent | 3e6963bdcf7ebc28bcae5bce1e2544d19f491657 (diff) | |
download | gnunet-gtk-7787447a4fc9b0f273e780d9c768fed6feceffdc.tar.gz gnunet-gtk-7787447a4fc9b0f273e780d9c768fed6feceffdc.zip |
some code cleanup
-rw-r--r-- | src/lib/eventloop.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/lib/eventloop.c b/src/lib/eventloop.c index 7eb7e060..ab9b8490 100644 --- a/src/lib/eventloop.c +++ b/src/lib/eventloop.c | |||
@@ -234,26 +234,25 @@ gnunet_gtk_select (void *cls, | |||
234 | struct GNUNET_GTK_MainLoop *ml = cls; | 234 | struct GNUNET_GTK_MainLoop *ml = cls; |
235 | int max_nfds; | 235 | int max_nfds; |
236 | gint poll_result; | 236 | gint poll_result; |
237 | |||
238 | GPollFD *gfds; | 237 | GPollFD *gfds; |
239 | gint delay; | 238 | gint delay; |
240 | |||
241 | guint i; | 239 | guint i; |
242 | guint fd_counter = 0; | 240 | guint fd_counter = 0; |
243 | 241 | guint allocated_nfds; | |
244 | guint allocated_nfds, need_gfds; | 242 | guint need_gfds; |
245 | 243 | fd_set aread; | |
246 | fd_set aread, awrite, aexcept; | 244 | fd_set awrite; |
245 | fd_set aexcept; | ||
247 | int pre_ret = 0; | 246 | int pre_ret = 0; |
248 | int result = 0; | 247 | int result = 0; |
249 | int socks = 0; | 248 | int socks = 0; |
250 | int sock_read = 0, sock_write = 0, sock_err = 0; | 249 | int sock_read = 0; |
250 | int sock_write = 0; | ||
251 | int sock_err = 0; | ||
251 | 252 | ||
252 | #if WINDOWS | 253 | #if WINDOWS |
253 | int always_ready_write_fd = -1; | 254 | int always_ready_write_fd = -1; |
254 | |||
255 | int select_ret = 0; | 255 | int select_ret = 0; |
256 | |||
257 | int read_handles = 0; | 256 | int read_handles = 0; |
258 | DWORD waitstatus; | 257 | DWORD waitstatus; |
259 | #endif | 258 | #endif |