aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs_put.c')
-rw-r--r--src/fs/gnunet-service-fs_put.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/fs/gnunet-service-fs_put.c b/src/fs/gnunet-service-fs_put.c
index 3fb2d7abb..fa5aa461d 100644
--- a/src/fs/gnunet-service-fs_put.c
+++ b/src/fs/gnunet-service-fs_put.c
@@ -95,8 +95,7 @@ static struct PutOperator operators[] = {
95 * @param tc scheduler context (unused) 95 * @param tc scheduler context (unused)
96 */ 96 */
97static void 97static void
98gather_dht_put_blocks (void *cls, 98gather_dht_put_blocks (void *cls);
99 const struct GNUNET_SCHEDULER_TaskContext *tc);
100 99
101 100
102/** 101/**
@@ -151,10 +150,9 @@ delay_dht_put_blocks (void *cls, int success)
151 * Task that is run periodically to obtain blocks for DHT PUTs. 150 * Task that is run periodically to obtain blocks for DHT PUTs.
152 * 151 *
153 * @param cls type of blocks to gather 152 * @param cls type of blocks to gather
154 * @param tc scheduler context
155 */ 153 */
156static void 154static void
157delay_dht_put_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 155delay_dht_put_task (void *cls)
158{ 156{
159 struct PutOperator *po = cls; 157 struct PutOperator *po = cls;
160 158
@@ -212,14 +210,15 @@ process_dht_put_content (void *cls,
212 * Task that is run periodically to obtain blocks for DHT PUTs. 210 * Task that is run periodically to obtain blocks for DHT PUTs.
213 * 211 *
214 * @param cls type of blocks to gather 212 * @param cls type of blocks to gather
215 * @param tc scheduler context (unused)
216 */ 213 */
217static void 214static void
218gather_dht_put_blocks (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 215gather_dht_put_blocks (void *cls)
219{ 216{
220 struct PutOperator *po = cls; 217 struct PutOperator *po = cls;
218 const struct GNUNET_SCHEDULER_TaskContext *tc;
221 219
222 po->dht_task = NULL; 220 po->dht_task = NULL;
221 tc = GNUNET_SCHEDULER_get_task_context ();
223 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 222 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
224 return; 223 return;
225 po->dht_qe = 224 po->dht_qe =