aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport-profiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-transport-profiler.c')
-rw-r--r--src/transport/gnunet-transport-profiler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/gnunet-transport-profiler.c b/src/transport/gnunet-transport-profiler.c
index fc3c32a40..c785653c8 100644
--- a/src/transport/gnunet-transport-profiler.c
+++ b/src/transport/gnunet-transport-profiler.c
@@ -142,7 +142,7 @@ static struct GNUNET_PeerIdentity pid;
142/** 142/**
143 * Task scheduled for cleanup / termination of the process. 143 * Task scheduled for cleanup / termination of the process.
144 */ 144 */
145static GNUNET_SCHEDULER_TaskIdentifier end; 145static struct GNUNET_SCHEDULER_Task * end;
146 146
147/** 147/**
148 * Selected level of verbosity. 148 * Selected level of verbosity.
@@ -370,7 +370,7 @@ iteration_done ()
370 if (it_count == benchmark_iterations) 370 if (it_count == benchmark_iterations)
371 { 371 {
372 benchmark_running = GNUNET_NO; 372 benchmark_running = GNUNET_NO;
373 if (GNUNET_SCHEDULER_NO_TASK != end) 373 if (NULL != end)
374 GNUNET_SCHEDULER_cancel (end); 374 GNUNET_SCHEDULER_cancel (end);
375 end = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); 375 end = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
376 return; 376 return;
@@ -490,7 +490,7 @@ try_connect_cb (void *cls,
490 FPRINTF (stderr, 490 FPRINTF (stderr,
491 "%s", 491 "%s",
492 _("Failed to send connect request to transport service\n")); 492 _("Failed to send connect request to transport service\n"));
493 if (GNUNET_SCHEDULER_NO_TASK != end) 493 if (NULL != end)
494 GNUNET_SCHEDULER_cancel (end); 494 GNUNET_SCHEDULER_cancel (end);
495 end = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); 495 end = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
496 ret = 1; 496 ret = 1;