aboutsummaryrefslogtreecommitdiff
path: root/src/dns/dnsstub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns/dnsstub.c')
-rw-r--r--src/dns/dnsstub.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dns/dnsstub.c b/src/dns/dnsstub.c
index 32049f66b..957777cba 100644
--- a/src/dns/dnsstub.c
+++ b/src/dns/dnsstub.c
@@ -185,11 +185,9 @@ open_socket (int af)
185 * Read a DNS response from the (unhindered) UDP-Socket 185 * Read a DNS response from the (unhindered) UDP-Socket
186 * 186 *
187 * @param cls socket to read from 187 * @param cls socket to read from
188 * @param tc scheduler context (must be shutdown or read ready)
189 */ 188 */
190static void 189static void
191read_response (void *cls, 190read_response (void *cls);
192 const struct GNUNET_SCHEDULER_TaskContext *tc);
193 191
194 192
195/** 193/**
@@ -466,16 +464,16 @@ do_dns_read (struct GNUNET_DNSSTUB_RequestSocket *rs,
466 * Read a DNS response from the (unhindered) UDP-Socket 464 * Read a DNS response from the (unhindered) UDP-Socket
467 * 465 *
468 * @param cls socket to read from 466 * @param cls socket to read from
469 * @param tc scheduler context (must be shutdown or read ready)
470 */ 467 */
471static void 468static void
472read_response (void *cls, 469read_response (void *cls)
473 const struct GNUNET_SCHEDULER_TaskContext *tc)
474{ 470{
475 struct GNUNET_DNSSTUB_RequestSocket *rs = cls; 471 struct GNUNET_DNSSTUB_RequestSocket *rs = cls;
476 struct GNUNET_NETWORK_FDSet *rset; 472 struct GNUNET_NETWORK_FDSet *rset;
473 const struct GNUNET_SCHEDULER_TaskContext *tc;
477 474
478 rs->read_task = NULL; 475 rs->read_task = NULL;
476 tc = GNUNET_SCHEDULER_get_task_context ();
479 if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_READ_READY)) 477 if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_READ_READY))
480 { 478 {
481 /* timeout or shutdown */ 479 /* timeout or shutdown */