aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_search_with_and.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/test_fs_search_with_and.c')
-rw-r--r--src/fs/test_fs_search_with_and.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/test_fs_search_with_and.c b/src/fs/test_fs_search_with_and.c
index 80cd03213..cca0e342e 100644
--- a/src/fs/test_fs_search_with_and.c
+++ b/src/fs/test_fs_search_with_and.c
@@ -58,7 +58,7 @@ static struct GNUNET_FS_SearchContext *search;
58 58
59static struct GNUNET_FS_PublishContext *publish; 59static struct GNUNET_FS_PublishContext *publish;
60 60
61static GNUNET_SCHEDULER_TaskIdentifier timeout_task; 61static struct GNUNET_SCHEDULER_Task * timeout_task;
62 62
63static int err; 63static int err;
64 64
@@ -73,10 +73,10 @@ abort_publish_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
73 GNUNET_FS_publish_stop (publish); 73 GNUNET_FS_publish_stop (publish);
74 publish = NULL; 74 publish = NULL;
75 } 75 }
76 if (GNUNET_SCHEDULER_NO_TASK != timeout_task) 76 if (NULL != timeout_task)
77 { 77 {
78 GNUNET_SCHEDULER_cancel (timeout_task); 78 GNUNET_SCHEDULER_cancel (timeout_task);
79 timeout_task = GNUNET_SCHEDULER_NO_TASK; 79 timeout_task = NULL;
80 } 80 }
81} 81}
82 82
@@ -86,7 +86,7 @@ abort_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
86{ 86{
87 fprintf (stderr, 87 fprintf (stderr,
88 "Timeout\n"); 88 "Timeout\n");
89 timeout_task = GNUNET_SCHEDULER_NO_TASK; 89 timeout_task = NULL;
90 if (NULL != search) 90 if (NULL != search)
91 { 91 {
92 GNUNET_FS_search_stop (search); 92 GNUNET_FS_search_stop (search);