From 29e6158507a0758192075ac6ece7ba8e75ddc49a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 9 Apr 2016 23:14:03 +0000 Subject: 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() --- src/ats-tests/gnunet-solver-eval.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ats-tests/gnunet-solver-eval.c') diff --git a/src/ats-tests/gnunet-solver-eval.c b/src/ats-tests/gnunet-solver-eval.c index e0d85094c..0d2460b7f 100644 --- a/src/ats-tests/gnunet-solver-eval.c +++ b/src/ats-tests/gnunet-solver-eval.c @@ -418,8 +418,9 @@ load_episodes (struct Experiment *e, struct GNUNET_CONFIGURATION_Handle *cfg) return e_counter; } + static void -timeout_experiment (void *cls, const struct GNUNET_SCHEDULER_TaskContext* tc) +timeout_experiment (void *cls) { struct Experiment *e = cls; e->experiment_timeout_task = NULL; @@ -435,6 +436,7 @@ timeout_experiment (void *cls, const struct GNUNET_SCHEDULER_TaskContext* tc) GNUNET_SYSERR); } + static void enforce_start_send (struct GNUNET_ATS_TEST_Operation *op) { @@ -584,8 +586,9 @@ static void enforce_episode (struct Episode *ep) } } + static void -timeout_episode (void *cls, const struct GNUNET_SCHEDULER_TaskContext* tc) +timeout_episode (void *cls) { struct Experiment *e = cls; e->episode_timeout_task = NULL; @@ -931,4 +934,3 @@ main (int argc, char *argv[]) return 0; } /* end of file ats-testing-experiment.c*/ - -- cgit v1.2.3