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/ats-tests/perf_ats.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/ats-tests/perf_ats.c')
-rw-r--r-- | src/ats-tests/perf_ats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ats-tests/perf_ats.c b/src/ats-tests/perf_ats.c index c49d5f03d..4c22043e5 100644 --- a/src/ats-tests/perf_ats.c +++ b/src/ats-tests/perf_ats.c | |||
@@ -185,10 +185,9 @@ evaluate () | |||
185 | * Shutdown nicely | 185 | * Shutdown nicely |
186 | * | 186 | * |
187 | * @param cls NULL | 187 | * @param cls NULL |
188 | * @param tc the task context | ||
189 | */ | 188 | */ |
190 | static void | 189 | static void |
191 | do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 190 | do_shutdown (void *cls) |
192 | { | 191 | { |
193 | 192 | ||
194 | if (GNUNET_YES == logging) | 193 | if (GNUNET_YES == logging) |
@@ -223,8 +222,9 @@ print_progress () | |||
223 | &print_progress, NULL ); | 222 | &print_progress, NULL ); |
224 | } | 223 | } |
225 | 224 | ||
225 | |||
226 | static void | 226 | static void |
227 | ats_pref_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 227 | ats_pref_task (void *cls) |
228 | { | 228 | { |
229 | struct BenchmarkPeer *me = cls; | 229 | struct BenchmarkPeer *me = cls; |
230 | 230 | ||