aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_publish_ublock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_publish_ublock.c')
-rw-r--r--src/fs/fs_publish_ublock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_publish_ublock.c b/src/fs/fs_publish_ublock.c
index 4399b8c8e..1cba7a4fc 100644
--- a/src/fs/fs_publish_ublock.c
+++ b/src/fs/fs_publish_ublock.c
@@ -112,7 +112,7 @@ struct GNUNET_FS_PublishUblockContext
112 /** 112 /**
113 * Task to run continuation asynchronously. 113 * Task to run continuation asynchronously.
114 */ 114 */
115 GNUNET_SCHEDULER_TaskIdentifier task; 115 struct GNUNET_SCHEDULER_Task * task;
116 116
117}; 117};
118 118
@@ -155,7 +155,7 @@ run_cont (void *cls,
155{ 155{
156 struct GNUNET_FS_PublishUblockContext *uc = cls; 156 struct GNUNET_FS_PublishUblockContext *uc = cls;
157 157
158 uc->task = GNUNET_SCHEDULER_NO_TASK; 158 uc->task = NULL;
159 uc->cont (uc->cont_cls, NULL); 159 uc->cont (uc->cont_cls, NULL);
160 GNUNET_free (uc); 160 GNUNET_free (uc);
161} 161}
@@ -316,7 +316,7 @@ GNUNET_FS_publish_ublock_cancel_ (struct GNUNET_FS_PublishUblockContext *uc)
316{ 316{
317 if (NULL != uc->qre) 317 if (NULL != uc->qre)
318 GNUNET_DATASTORE_cancel (uc->qre); 318 GNUNET_DATASTORE_cancel (uc->qre);
319 if (GNUNET_SCHEDULER_NO_TASK != uc->task) 319 if (NULL != uc->task)
320 GNUNET_SCHEDULER_cancel (uc->task); 320 GNUNET_SCHEDULER_cancel (uc->task);
321 GNUNET_free (uc); 321 GNUNET_free (uc);
322} 322}