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/dns/dns_api.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/dns/dns_api.c')
-rw-r--r-- | src/dns/dns_api.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dns/dns_api.c b/src/dns/dns_api.c index 984aa1a4c..f96ac3142 100644 --- a/src/dns/dns_api.c +++ b/src/dns/dns_api.c | |||
@@ -162,8 +162,7 @@ queue_reply (struct GNUNET_DNS_Handle *dh, | |||
162 | * @param tc scheduler context (unused) | 162 | * @param tc scheduler context (unused) |
163 | */ | 163 | */ |
164 | static void | 164 | static void |
165 | reconnect (void *cls, | 165 | reconnect (void *cls) |
166 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
167 | { | 166 | { |
168 | struct GNUNET_DNS_Handle *dh = cls; | 167 | struct GNUNET_DNS_Handle *dh = cls; |
169 | struct ReplyQueueEntry *qe; | 168 | struct ReplyQueueEntry *qe; |
@@ -440,7 +439,7 @@ GNUNET_DNS_request_drop (struct GNUNET_DNS_RequestHandle *rh) | |||
440 | * @param reply reply data | 439 | * @param reply reply data |
441 | */ | 440 | */ |
442 | void | 441 | void |
443 | GNUNET_DNS_request_answer (struct GNUNET_DNS_RequestHandle *rh, | 442 | GNUNET_DNS_request_answer (struct GNUNET_DNS_RequestHandle *rh, |
444 | uint16_t reply_length, | 443 | uint16_t reply_length, |
445 | const char *reply) | 444 | const char *reply) |
446 | { | 445 | { |