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/testbed/testbed_api_statistics.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/testbed/testbed_api_statistics.c')
-rw-r--r-- | src/testbed/testbed_api_statistics.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testbed/testbed_api_statistics.c b/src/testbed/testbed_api_statistics.c index 0f24446fe..a4778f84d 100644 --- a/src/testbed/testbed_api_statistics.c +++ b/src/testbed/testbed_api_statistics.c | |||
@@ -150,10 +150,9 @@ static struct OperationQueue *no_wait_queue; | |||
150 | * get_statistics operation. | 150 | * get_statistics operation. |
151 | * | 151 | * |
152 | * @param cls the GetStatsContext | 152 | * @param cls the GetStatsContext |
153 | * @param tc the scheduler task context | ||
154 | */ | 153 | */ |
155 | static void | 154 | static void |
156 | call_completion_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 155 | call_completion_task (void *cls) |
157 | { | 156 | { |
158 | struct GetStatsContext *sc = cls; | 157 | struct GetStatsContext *sc = cls; |
159 | 158 | ||
@@ -169,10 +168,9 @@ call_completion_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
169 | * as we cannot destroy the statistics handle in iteration_completion_cb() | 168 | * as we cannot destroy the statistics handle in iteration_completion_cb() |
170 | * | 169 | * |
171 | * @param cls the PeerGetStatsContext | 170 | * @param cls the PeerGetStatsContext |
172 | * @param tc the scheduler task context | ||
173 | */ | 171 | */ |
174 | static void | 172 | static void |
175 | op_done_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 173 | op_done_task (void *cls) |
176 | { | 174 | { |
177 | struct PeerGetStatsContext *peer_sc = cls; | 175 | struct PeerGetStatsContext *peer_sc = cls; |
178 | struct GetStatsContext *sc; | 176 | struct GetStatsContext *sc; |