diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/gns/gnunet-service-gns_resolver.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) | |
download | gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip |
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.c')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 9a54a8080..daae46ab7 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -541,11 +541,9 @@ translate_dot_plus (struct GNS_ResolverHandle *rh, | |||
541 | * Task scheduled to asynchronously fail a resolution. | 541 | * Task scheduled to asynchronously fail a resolution. |
542 | * | 542 | * |
543 | * @param cls the 'struct GNS_ResolverHandle' of the resolution to fail | 543 | * @param cls the 'struct GNS_ResolverHandle' of the resolution to fail |
544 | * @param tc task context | ||
545 | */ | 544 | */ |
546 | static void | 545 | static void |
547 | fail_resolution (void *cls, | 546 | fail_resolution (void *cls) |
548 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
549 | { | 547 | { |
550 | struct GNS_ResolverHandle *rh = cls; | 548 | struct GNS_ResolverHandle *rh = cls; |
551 | 549 | ||
@@ -808,8 +806,7 @@ handle_dns_result (void *cls, | |||
808 | * @param tc task context | 806 | * @param tc task context |
809 | */ | 807 | */ |
810 | static void | 808 | static void |
811 | recursive_resolution (void *cls, | 809 | recursive_resolution (void *cls); |
812 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
813 | 810 | ||
814 | 811 | ||
815 | /** | 812 | /** |
@@ -2229,11 +2226,9 @@ recursive_gns_resolution_revocation (struct GNS_ResolverHandle *rh) | |||
2229 | * Task scheduled to continue with the resolution process. | 2226 | * Task scheduled to continue with the resolution process. |
2230 | * | 2227 | * |
2231 | * @param cls the `struct GNS_ResolverHandle` of the resolution | 2228 | * @param cls the `struct GNS_ResolverHandle` of the resolution |
2232 | * @param tc task context | ||
2233 | */ | 2229 | */ |
2234 | static void | 2230 | static void |
2235 | recursive_resolution (void *cls, | 2231 | recursive_resolution (void *cls) |
2236 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
2237 | { | 2232 | { |
2238 | struct GNS_ResolverHandle *rh = cls; | 2233 | struct GNS_ResolverHandle *rh = cls; |
2239 | 2234 | ||