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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/gnunet-service-fs_put.c b/src/fs/gnunet-service-fs_put.c
index 8e9d70f72..9eef491da 100644
--- a/src/fs/gnunet-service-fs_put.c
+++ b/src/fs/gnunet-service-fs_put.c
@@ -63,7 +63,7 @@ struct PutOperator
63 /** 63 /**
64 * ID of task that collects blocks for DHT PUTs. 64 * ID of task that collects blocks for DHT PUTs.
65 */ 65 */
66 GNUNET_SCHEDULER_TaskIdentifier dht_task; 66 struct GNUNET_SCHEDULER_Task * dht_task;
67 67
68 /** 68 /**
69 * How many entires with zero anonymity of our type do we currently 69 * How many entires with zero anonymity of our type do we currently
@@ -158,7 +158,7 @@ delay_dht_put_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
158{ 158{
159 struct PutOperator *po = cls; 159 struct PutOperator *po = cls;
160 160
161 po->dht_task = GNUNET_SCHEDULER_NO_TASK; 161 po->dht_task = NULL;
162 schedule_next_put (po); 162 schedule_next_put (po);
163} 163}
164 164
@@ -219,7 +219,7 @@ gather_dht_put_blocks (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
219{ 219{
220 struct PutOperator *po = cls; 220 struct PutOperator *po = cls;
221 221
222 po->dht_task = GNUNET_SCHEDULER_NO_TASK; 222 po->dht_task = NULL;
223 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 223 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
224 return; 224 return;
225 po->dht_qe = 225 po->dht_qe =
@@ -263,10 +263,10 @@ GSF_put_done_ ()
263 i = 0; 263 i = 0;
264 while ((po = &operators[i])->dht_put_type != GNUNET_BLOCK_TYPE_ANY) 264 while ((po = &operators[i])->dht_put_type != GNUNET_BLOCK_TYPE_ANY)
265 { 265 {
266 if (GNUNET_SCHEDULER_NO_TASK != po->dht_task) 266 if (NULL != po->dht_task)
267 { 267 {
268 GNUNET_SCHEDULER_cancel (po->dht_task); 268 GNUNET_SCHEDULER_cancel (po->dht_task);
269 po->dht_task = GNUNET_SCHEDULER_NO_TASK; 269 po->dht_task = NULL;
270 } 270 }
271 if (NULL != po->dht_put) 271 if (NULL != po->dht_put)
272 { 272 {