aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_monitor.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_monitor.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_monitor.c')
-rw-r--r--src/dht/test_dht_monitor.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dht/test_dht_monitor.c b/src/dht/test_dht_monitor.c
index fc4b45a45..6b639e341 100644
--- a/src/dht/test_dht_monitor.c
+++ b/src/dht/test_dht_monitor.c
@@ -108,11 +108,9 @@ static unsigned int monitor_counter;
108 * the testbed. 108 * the testbed.
109 * 109 *
110 * @param cls the 'struct GNUNET_DHT_TestContext' 110 * @param cls the 'struct GNUNET_DHT_TestContext'
111 * @param tc scheduler context
112 */ 111 */
113static void 112static void
114shutdown_task (void *cls, 113shutdown_task (void *cls)
115 const struct GNUNET_SCHEDULER_TaskContext *tc)
116{ 114{
117 struct GNUNET_DHT_TEST_Context *ctx = cls; 115 struct GNUNET_DHT_TEST_Context *ctx = cls;
118 unsigned int i; 116 unsigned int i;
@@ -197,11 +195,9 @@ dht_get_handler (void *cls, struct GNUNET_TIME_Absolute exp,
197 * Task to put the id of each peer into the DHT. 195 * Task to put the id of each peer into the DHT.
198 * 196 *
199 * @param cls array with NUM_PEERS DHT handles 197 * @param cls array with NUM_PEERS DHT handles
200 * @param tc Task context
201 */ 198 */
202static void 199static void
203do_puts (void *cls, 200do_puts (void *cls)
204 const struct GNUNET_SCHEDULER_TaskContext *tc)
205{ 201{
206 struct GNUNET_DHT_Handle **hs = cls; 202 struct GNUNET_DHT_Handle **hs = cls;
207 struct GNUNET_HashCode key; 203 struct GNUNET_HashCode key;