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_reliability.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_reliability.c')
-rw-r--r-- | src/core/test_core_api_reliability.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index 5951e6c84..49affdff3 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c | |||
@@ -128,8 +128,7 @@ terminate_peer (struct PeerContext *p) | |||
128 | 128 | ||
129 | 129 | ||
130 | static void | 130 | static void |
131 | terminate_task (void *cls, | 131 | terminate_task (void *cls) |
132 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
133 | { | 132 | { |
134 | unsigned long long delta; | 133 | unsigned long long delta; |
135 | 134 | ||
@@ -146,8 +145,7 @@ terminate_task (void *cls, | |||
146 | 145 | ||
147 | 146 | ||
148 | static void | 147 | static void |
149 | terminate_task_error (void *cls, | 148 | terminate_task_error (void *cls) |
150 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
151 | { | 149 | { |
152 | GNUNET_break (0); | 150 | GNUNET_break (0); |
153 | terminate_peer (&p1); | 151 | terminate_peer (&p1); |