aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-daemon-fsprofiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-daemon-fsprofiler.c')
-rw-r--r--src/fs/gnunet-daemon-fsprofiler.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/gnunet-daemon-fsprofiler.c b/src/fs/gnunet-daemon-fsprofiler.c
index 1549972a1..9c4f28351 100644
--- a/src/fs/gnunet-daemon-fsprofiler.c
+++ b/src/fs/gnunet-daemon-fsprofiler.c
@@ -69,12 +69,12 @@ struct Pattern
69 /** 69 /**
70 * Task to run the operation. 70 * Task to run the operation.
71 */ 71 */
72 GNUNET_SCHEDULER_TaskIdentifier task; 72 struct GNUNET_SCHEDULER_Task * task;
73 73
74 /** 74 /**
75 * Secondary task to run the operation. 75 * Secondary task to run the operation.
76 */ 76 */
77 GNUNET_SCHEDULER_TaskIdentifier stask; 77 struct GNUNET_SCHEDULER_Task * stask;
78 78
79 /** 79 /**
80 * X-value. 80 * X-value.
@@ -276,7 +276,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
276 276
277 while (NULL != (p = publish_head)) 277 while (NULL != (p = publish_head))
278 { 278 {
279 if (GNUNET_SCHEDULER_NO_TASK != p->task) 279 if (NULL != p->task)
280 GNUNET_SCHEDULER_cancel (p->task); 280 GNUNET_SCHEDULER_cancel (p->task);
281 if (NULL != p->ctx) 281 if (NULL != p->ctx)
282 GNUNET_FS_publish_stop (p->ctx); 282 GNUNET_FS_publish_stop (p->ctx);
@@ -285,9 +285,9 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
285 } 285 }
286 while (NULL != (p = download_head)) 286 while (NULL != (p = download_head))
287 { 287 {
288 if (GNUNET_SCHEDULER_NO_TASK != p->task) 288 if (NULL != p->task)
289 GNUNET_SCHEDULER_cancel (p->task); 289 GNUNET_SCHEDULER_cancel (p->task);
290 if (GNUNET_SCHEDULER_NO_TASK != p->stask) 290 if (NULL != p->stask)
291 GNUNET_SCHEDULER_cancel (p->stask); 291 GNUNET_SCHEDULER_cancel (p->stask);
292 if (NULL != p->ctx) 292 if (NULL != p->ctx)
293 GNUNET_FS_download_stop (p->ctx, GNUNET_YES); 293 GNUNET_FS_download_stop (p->ctx, GNUNET_YES);
@@ -320,7 +320,7 @@ publish_stop_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
320{ 320{
321 struct Pattern *p = cls; 321 struct Pattern *p = cls;
322 322
323 p->task = GNUNET_SCHEDULER_NO_TASK; 323 p->task = NULL;
324 GNUNET_FS_publish_stop (p->ctx); 324 GNUNET_FS_publish_stop (p->ctx);
325} 325}
326 326
@@ -336,7 +336,7 @@ download_stop_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
336{ 336{
337 struct Pattern *p = cls; 337 struct Pattern *p = cls;
338 338
339 p->task = GNUNET_SCHEDULER_NO_TASK; 339 p->task = NULL;
340 GNUNET_FS_download_stop (p->ctx, GNUNET_YES); 340 GNUNET_FS_download_stop (p->ctx, GNUNET_YES);
341} 341}
342 342
@@ -352,7 +352,7 @@ search_stop_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
352{ 352{
353 struct Pattern *p = cls; 353 struct Pattern *p = cls;
354 354
355 p->stask = GNUNET_SCHEDULER_NO_TASK; 355 p->stask = NULL;
356 GNUNET_FS_search_stop (p->sctx); 356 GNUNET_FS_search_stop (p->sctx);
357} 357}
358 358
@@ -507,7 +507,7 @@ start_publish (void *cls,
507 struct Pattern *p = cls; 507 struct Pattern *p = cls;
508 struct GNUNET_FS_FileInformation *fi; 508 struct GNUNET_FS_FileInformation *fi;
509 509
510 p->task = GNUNET_SCHEDULER_NO_TASK; 510 p->task = NULL;
511 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 511 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
512 return; 512 return;
513 fi = make_file (p->x, p->y, p); 513 fi = make_file (p->x, p->y, p);
@@ -532,7 +532,7 @@ start_download (void *cls,
532 struct Pattern *p = cls; 532 struct Pattern *p = cls;
533 struct GNUNET_FS_Uri *keywords; 533 struct GNUNET_FS_Uri *keywords;
534 534
535 p->task = GNUNET_SCHEDULER_NO_TASK; 535 p->task = NULL;
536 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 536 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
537 return; 537 return;
538 keywords = make_keywords (p->x); 538 keywords = make_keywords (p->x);