diff options
Diffstat (limited to 'src/nat/nat_auto.c')
-rw-r--r-- | src/nat/nat_auto.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/nat/nat_auto.c b/src/nat/nat_auto.c index 9fab8bf67..82e067f73 100644 --- a/src/nat/nat_auto.c +++ b/src/nat/nat_auto.c | |||
@@ -258,18 +258,17 @@ stop_stun () | |||
258 | * incoming connection. | 258 | * incoming connection. |
259 | * | 259 | * |
260 | * @param cls | 260 | * @param cls |
261 | * @param tc scheduler context | ||
262 | */ | 261 | */ |
263 | static void | 262 | static void |
264 | do_udp_read (void *cls, | 263 | do_udp_read (void *cls) |
265 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
266 | { | 264 | { |
267 | struct GNUNET_NAT_AutoHandle *ah = cls; | 265 | struct GNUNET_NAT_AutoHandle *ah = cls; |
268 | unsigned char reply_buf[1024]; | 266 | unsigned char reply_buf[1024]; |
269 | ssize_t rlen; | 267 | ssize_t rlen; |
270 | struct sockaddr_in answer; | 268 | struct sockaddr_in answer; |
269 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
271 | 270 | ||
272 | 271 | tc = GNUNET_SCHEDULER_get_task_context (); | |
273 | if ((0 != (tc->reason & GNUNET_SCHEDULER_REASON_READ_READY)) && | 272 | if ((0 != (tc->reason & GNUNET_SCHEDULER_REASON_READ_READY)) && |
274 | (GNUNET_NETWORK_fdset_isset (tc->read_ready, | 273 | (GNUNET_NETWORK_fdset_isset (tc->read_ready, |
275 | lsock4))) | 274 | lsock4))) |
@@ -402,11 +401,9 @@ result_callback (void *cls, | |||
402 | * Main function for the connection reversal test. | 401 | * Main function for the connection reversal test. |
403 | * | 402 | * |
404 | * @param cls the `struct GNUNET_NAT_AutoHandle` | 403 | * @param cls the `struct GNUNET_NAT_AutoHandle` |
405 | * @param tc scheduler context | ||
406 | */ | 404 | */ |
407 | static void | 405 | static void |
408 | reversal_test (void *cls, | 406 | reversal_test (void *cls) |
409 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
410 | { | 407 | { |
411 | struct GNUNET_NAT_AutoHandle *ah = cls; | 408 | struct GNUNET_NAT_AutoHandle *ah = cls; |
412 | 409 | ||