aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_main-window-search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_main-window-search.c')
-rw-r--r--src/fs/gnunet-fs-gtk_main-window-search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/gnunet-fs-gtk_main-window-search.c b/src/fs/gnunet-fs-gtk_main-window-search.c
index cf481166..4944168d 100644
--- a/src/fs/gnunet-fs-gtk_main-window-search.c
+++ b/src/fs/gnunet-fs-gtk_main-window-search.c
@@ -64,10 +64,10 @@ abort_search_lookup (struct SearchLookup *sl)
64 GNUNET_CONTAINER_DLL_remove (main_ctx->sl_head, 64 GNUNET_CONTAINER_DLL_remove (main_ctx->sl_head,
65 main_ctx->sl_tail, 65 main_ctx->sl_tail,
66 sl); 66 sl);
67 if (GNUNET_SCHEDULER_NO_TASK != sl->timeout_task) 67 if (NULL != sl->timeout_task)
68 { 68 {
69 GNUNET_SCHEDULER_cancel (sl->timeout_task); 69 GNUNET_SCHEDULER_cancel (sl->timeout_task);
70 sl->timeout_task = GNUNET_SCHEDULER_NO_TASK; 70 sl->timeout_task = NULL;
71 } 71 }
72 if (NULL != sl->gns) 72 if (NULL != sl->gns)
73 { 73 {
@@ -92,7 +92,7 @@ timeout_search_lookup (void *cls,
92{ 92{
93 struct SearchLookup *sl = cls; 93 struct SearchLookup *sl = cls;
94 94
95 sl->timeout_task = GNUNET_SCHEDULER_NO_TASK; 95 sl->timeout_task = NULL;
96 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 96 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
97 _("Failed to resolve namespace in time\n")); 97 _("Failed to resolve namespace in time\n"));
98 abort_search_lookup (sl); 98 abort_search_lookup (sl);