aboutsummaryrefslogtreecommitdiff
path: root/src/set/test_set_union_result_symmetric.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/set/test_set_union_result_symmetric.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/set/test_set_union_result_symmetric.c')
-rw-r--r--src/set/test_set_union_result_symmetric.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/set/test_set_union_result_symmetric.c b/src/set/test_set_union_result_symmetric.c
index 9a49abaf0..b312bcb4c 100644
--- a/src/set/test_set_union_result_symmetric.c
+++ b/src/set/test_set_union_result_symmetric.c
@@ -293,12 +293,13 @@ test_iter ()
293 * Signature of the main function of a task. 293 * Signature of the main function of a task.
294 * 294 *
295 * @param cls closure 295 * @param cls closure
296 * @param tc context information (why was this task triggered now)
297 */ 296 */
298static void 297static void
299timeout_fail (void *cls, 298timeout_fail (void *cls)
300 const struct GNUNET_SCHEDULER_TaskContext *tc)
301{ 299{
300 const struct GNUNET_SCHEDULER_TaskContext *tc;
301
302 tc = GNUNET_SCHEDULER_get_task_context ();
302 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 303 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
303 return; 304 return;
304 GNUNET_SCHEDULER_shutdown (); 305 GNUNET_SCHEDULER_shutdown ();