aboutsummaryrefslogtreecommitdiff
path: root/src/ats-tool/gnunet-ats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats-tool/gnunet-ats.c')
-rw-r--r--src/ats-tool/gnunet-ats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ats-tool/gnunet-ats.c b/src/ats-tool/gnunet-ats.c
index 69fbcf7a3..217c075b2 100644
--- a/src/ats-tool/gnunet-ats.c
+++ b/src/ats-tool/gnunet-ats.c
@@ -124,7 +124,7 @@ static struct GNUNET_CONFIGURATION_Handle *cfg;
124/** 124/**
125 * Shutdown task 125 * Shutdown task
126 */ 126 */
127static GNUNET_SCHEDULER_TaskIdentifier shutdown_task; 127static struct GNUNET_SCHEDULER_Task * shutdown_task;
128 128
129/** 129/**
130 * Hashmap to store addresses 130 * Hashmap to store addresses
@@ -345,7 +345,7 @@ transport_addr_to_str_cb (void *cls,
345 if ((GNUNET_YES == stat_receive_done) && (0 == stat_pending)) 345 if ((GNUNET_YES == stat_receive_done) && (0 == stat_pending))
346 { 346 {
347 /* All messages received and no resolutions pending*/ 347 /* All messages received and no resolutions pending*/
348 if (shutdown_task != GNUNET_SCHEDULER_NO_TASK) 348 if (shutdown_task != NULL)
349 GNUNET_SCHEDULER_cancel (shutdown_task); 349 GNUNET_SCHEDULER_cancel (shutdown_task);
350 shutdown_task = GNUNET_SCHEDULER_add_now (end, NULL); 350 shutdown_task = GNUNET_SCHEDULER_add_now (end, NULL);
351 } 351 }
@@ -637,7 +637,7 @@ ats_perf_cb (void *cls,
637 if (0 == stat_pending) 637 if (0 == stat_pending)
638 { 638 {
639 /* All messages received and no resolutions pending*/ 639 /* All messages received and no resolutions pending*/
640 if (shutdown_task != GNUNET_SCHEDULER_NO_TASK) 640 if (shutdown_task != NULL)
641 GNUNET_SCHEDULER_cancel (shutdown_task); 641 GNUNET_SCHEDULER_cancel (shutdown_task);
642 shutdown_task = GNUNET_SCHEDULER_add_now (end, NULL); 642 shutdown_task = GNUNET_SCHEDULER_add_now (end, NULL);
643 } 643 }