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/core/test_core_api.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/core/test_core_api.c')
-rw-r--r-- | src/core/test_core_api.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c index 973b97bff..92ee038da 100644 --- a/src/core/test_core_api.c +++ b/src/core/test_core_api.c | |||
@@ -99,8 +99,7 @@ terminate_peer (struct PeerContext *p) | |||
99 | 99 | ||
100 | 100 | ||
101 | static void | 101 | static void |
102 | terminate_task (void *cls, | 102 | terminate_task (void *cls) |
103 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
104 | { | 103 | { |
105 | GNUNET_assert (ok == 6); | 104 | GNUNET_assert (ok == 6); |
106 | terminate_peer (&p1); | 105 | terminate_peer (&p1); |
@@ -110,8 +109,7 @@ terminate_task (void *cls, | |||
110 | 109 | ||
111 | 110 | ||
112 | static void | 111 | static void |
113 | terminate_task_error (void *cls, | 112 | terminate_task_error (void *cls) |
114 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
115 | { | 113 | { |
116 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 114 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
117 | "ENDING ANGRILY %u\n", | 115 | "ENDING ANGRILY %u\n", |