diff options
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.c')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 897a8b218..9e901f60c 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -334,7 +334,7 @@ struct GNS_ResolverHandle | |||
334 | /** | 334 | /** |
335 | * ID of a task associated with the resolution process. | 335 | * ID of a task associated with the resolution process. |
336 | */ | 336 | */ |
337 | GNUNET_SCHEDULER_TaskIdentifier task_id; | 337 | struct GNUNET_SCHEDULER_Task * task_id; |
338 | 338 | ||
339 | /** | 339 | /** |
340 | * The name to resolve | 340 | * The name to resolve |
@@ -549,7 +549,7 @@ fail_resolution (void *cls, | |||
549 | { | 549 | { |
550 | struct GNS_ResolverHandle *rh = cls; | 550 | struct GNS_ResolverHandle *rh = cls; |
551 | 551 | ||
552 | rh->task_id = GNUNET_SCHEDULER_NO_TASK; | 552 | rh->task_id = NULL; |
553 | rh->proc (rh->proc_cls, 0, NULL); | 553 | rh->proc (rh->proc_cls, 0, NULL); |
554 | GNS_resolver_lookup_cancel (rh); | 554 | GNS_resolver_lookup_cancel (rh); |
555 | } | 555 | } |
@@ -845,7 +845,7 @@ dns_result_parser (void *cls, | |||
845 | 845 | ||
846 | rh->dns_request = NULL; | 846 | rh->dns_request = NULL; |
847 | GNUNET_SCHEDULER_cancel (rh->task_id); | 847 | GNUNET_SCHEDULER_cancel (rh->task_id); |
848 | rh->task_id = GNUNET_SCHEDULER_NO_TASK; | 848 | rh->task_id = NULL; |
849 | p = GNUNET_DNSPARSER_parse ((const char *) dns, | 849 | p = GNUNET_DNSPARSER_parse ((const char *) dns, |
850 | dns_len); | 850 | dns_len); |
851 | if (NULL == p) | 851 | if (NULL == p) |
@@ -2232,7 +2232,7 @@ recursive_resolution (void *cls, | |||
2232 | { | 2232 | { |
2233 | struct GNS_ResolverHandle *rh = cls; | 2233 | struct GNS_ResolverHandle *rh = cls; |
2234 | 2234 | ||
2235 | rh->task_id = GNUNET_SCHEDULER_NO_TASK; | 2235 | rh->task_id = NULL; |
2236 | if (MAX_RECURSION < rh->loop_limiter++) | 2236 | if (MAX_RECURSION < rh->loop_limiter++) |
2237 | { | 2237 | { |
2238 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 2238 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
@@ -2456,10 +2456,10 @@ GNS_resolver_lookup_cancel (struct GNS_ResolverHandle *rh) | |||
2456 | GNUNET_free (rh->g2dc); | 2456 | GNUNET_free (rh->g2dc); |
2457 | rh->g2dc = NULL; | 2457 | rh->g2dc = NULL; |
2458 | } | 2458 | } |
2459 | if (GNUNET_SCHEDULER_NO_TASK != rh->task_id) | 2459 | if (NULL != rh->task_id) |
2460 | { | 2460 | { |
2461 | GNUNET_SCHEDULER_cancel (rh->task_id); | 2461 | GNUNET_SCHEDULER_cancel (rh->task_id); |
2462 | rh->task_id = GNUNET_SCHEDULER_NO_TASK; | 2462 | rh->task_id = NULL; |
2463 | } | 2463 | } |
2464 | if (NULL != rh->get_handle) | 2464 | if (NULL != rh->get_handle) |
2465 | { | 2465 | { |