aboutsummaryrefslogtreecommitdiff
path: root/src/ats-tests/perf_ats.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/ats-tests/perf_ats.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-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.c6
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 */
190static void 189static void
191do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 190do_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
226static void 226static void
227ats_pref_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 227ats_pref_task (void *cls)
228{ 228{
229 struct BenchmarkPeer *me = cls; 229 struct BenchmarkPeer *me = cls;
230 230