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/testing/testing.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/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index 07129fd6f..32cd09b84 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -1654,11 +1654,9 @@ struct ServiceContext | |||
1654 | * Callback to be called when SCHEDULER has been started | 1654 | * Callback to be called when SCHEDULER has been started |
1655 | * | 1655 | * |
1656 | * @param cls the ServiceContext | 1656 | * @param cls the ServiceContext |
1657 | * @param tc the TaskContext | ||
1658 | */ | 1657 | */ |
1659 | static void | 1658 | static void |
1660 | service_run_main (void *cls, | 1659 | service_run_main (void *cls) |
1661 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
1662 | { | 1660 | { |
1663 | struct ServiceContext *sc = cls; | 1661 | struct ServiceContext *sc = cls; |
1664 | 1662 | ||