aboutsummaryrefslogtreecommitdiff
path: root/src/set/test_set_union_copy.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_copy.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_copy.c')
-rw-r--r--src/set/test_set_union_copy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/set/test_set_union_copy.c b/src/set/test_set_union_copy.c
index 247d91498..fdf6bf9df 100644
--- a/src/set/test_set_union_copy.c
+++ b/src/set/test_set_union_copy.c
@@ -73,12 +73,13 @@ remove_element_str (struct GNUNET_SET_Handle *set, char *str)
73 * Signature of the main function of a task. 73 * Signature of the main function of a task.
74 * 74 *
75 * @param cls closure 75 * @param cls closure
76 * @param tc context information (why was this task triggered now)
77 */ 76 */
78static void 77static void
79timeout_fail (void *cls, 78timeout_fail (void *cls)
80 const struct GNUNET_SCHEDULER_TaskContext *tc)
81{ 79{
80 const struct GNUNET_SCHEDULER_TaskContext *tc;
81
82 tc = GNUNET_SCHEDULER_get_task_context ();
82 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 83 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
83 return; 84 return;
84 GNUNET_SCHEDULER_shutdown (); 85 GNUNET_SCHEDULER_shutdown ();