aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed_peers.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/testbed/gnunet-service-testbed_peers.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/testbed/gnunet-service-testbed_peers.c')
-rw-r--r--src/testbed/gnunet-service-testbed_peers.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testbed/gnunet-service-testbed_peers.c b/src/testbed/gnunet-service-testbed_peers.c
index a5f1abe4d..ba20d6d6b 100644
--- a/src/testbed/gnunet-service-testbed_peers.c
+++ b/src/testbed/gnunet-service-testbed_peers.c
@@ -211,16 +211,14 @@ peer_list_remove (struct Peer *peer)
211 * timed out 211 * timed out
212 * 212 *
213 * @param cls the FowardedOperationContext 213 * @param cls the FowardedOperationContext
214 * @param tc the TaskContext from the scheduler
215 */ 214 */
216static void 215static void
217peer_create_forward_timeout (void *cls, 216peer_create_forward_timeout (void *cls)
218 const struct GNUNET_SCHEDULER_TaskContext *tc)
219{ 217{
220 struct ForwardedOperationContext *fopc = cls; 218 struct ForwardedOperationContext *fopc = cls;
221 219
222 GNUNET_free (fopc->cls); 220 GNUNET_free (fopc->cls);
223 GST_forwarded_operation_timeout (fopc, tc); 221 GST_forwarded_operation_timeout (fopc);
224} 222}
225 223
226 224