diff options
Diffstat (limited to 'src/fs/gnunet-service-fs_put.c')
-rw-r--r-- | src/fs/gnunet-service-fs_put.c | 11 |
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 | */ |
97 | static void | 97 | static void |
98 | gather_dht_put_blocks (void *cls, | 98 | gather_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 | */ |
156 | static void | 154 | static void |
157 | delay_dht_put_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 155 | delay_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 | */ |
217 | static void | 214 | static void |
218 | gather_dht_put_blocks (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 215 | gather_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 = |