aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_api.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/dht/test_dht_api.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/dht/test_dht_api.c')
-rw-r--r--src/dht/test_dht_api.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c
index b2d31d02f..2507ff080 100644
--- a/src/dht/test_dht_api.c
+++ b/src/dht/test_dht_api.c
@@ -82,7 +82,7 @@ static struct GNUNET_SCHEDULER_Task * die_task;
82 82
83 83
84static void 84static void
85end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 85end (void *cls)
86{ 86{
87 GNUNET_SCHEDULER_cancel (die_task); 87 GNUNET_SCHEDULER_cancel (die_task);
88 die_task = NULL; 88 die_task = NULL;
@@ -116,11 +116,9 @@ end_badly ()
116 * Signature of the main function of a task. 116 * Signature of the main function of a task.
117 * 117 *
118 * @param cls closure 118 * @param cls closure
119 * @param tc context information (why was this task triggered now)
120 */ 119 */
121static void 120static void
122test_get_stop (void *cls, 121test_get_stop (void *cls)
123 const struct GNUNET_SCHEDULER_TaskContext *tc)
124{ 122{
125 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 123 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
126 "Called test_get_stop!\n"); 124 "Called test_get_stop!\n");