aboutsummaryrefslogtreecommitdiff
path: root/src/nse/gnunet-nse-profiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nse/gnunet-nse-profiler.c')
-rw-r--r--src/nse/gnunet-nse-profiler.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c
index 91ca97fbd..5b893ae47 100644
--- a/src/nse/gnunet-nse-profiler.c
+++ b/src/nse/gnunet-nse-profiler.c
@@ -265,10 +265,9 @@ close_monitor_connections ()
265 * Task run on shutdown; cleans up everything. 265 * Task run on shutdown; cleans up everything.
266 * 266 *
267 * @param cls unused 267 * @param cls unused
268 * @param tc unused
269 */ 268 */
270static void 269static void
271shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 270shutdown_task (void *cls)
272{ 271{
273 shutdown_task_id = NULL; 272 shutdown_task_id = NULL;
274 if (GNUNET_YES == shutting_down) 273 if (GNUNET_YES == shutting_down)
@@ -542,11 +541,9 @@ connect_nse_service ()
542 * Task that starts/stops peers to move to the next round. 541 * Task that starts/stops peers to move to the next round.
543 * 542 *
544 * @param cls NULL, unused 543 * @param cls NULL, unused
545 * @param tc scheduler context (unused)
546 */ 544 */
547static void 545static void
548next_round (void *cls, 546next_round (void *cls);
549 const struct GNUNET_SCHEDULER_TaskContext *tc);
550 547
551 548
552/** 549/**
@@ -555,12 +552,13 @@ next_round (void *cls,
555 * the next round. 552 * the next round.
556 * 553 *
557 * @param cls unused, NULL 554 * @param cls unused, NULL
558 * @param tc unused
559 */ 555 */
560static void 556static void
561finish_round (void *cls, 557finish_round (void *cls)
562 const struct GNUNET_SCHEDULER_TaskContext *tc)
563{ 558{
559 const struct GNUNET_SCHEDULER_TaskContext *tc;
560
561 tc = GNUNET_SCHEDULER_get_task_context ();
564 if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) 562 if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason))
565 return; 563 return;
566 LOG (GNUNET_ERROR_TYPE_INFO, "Have %u connections\n", total_connections); 564 LOG (GNUNET_ERROR_TYPE_INFO, "Have %u connections\n", total_connections);
@@ -670,12 +668,13 @@ adjust_running_peers ()
670 * peers; then get statistics from *all* peers. 668 * peers; then get statistics from *all* peers.
671 * 669 *
672 * @param cls NULL, unused 670 * @param cls NULL, unused
673 * @param tc unused
674 */ 671 */
675static void 672static void
676next_round (void *cls, 673next_round (void *cls)
677 const struct GNUNET_SCHEDULER_TaskContext *tc)
678{ 674{
675 const struct GNUNET_SCHEDULER_TaskContext *tc;
676
677 tc = GNUNET_SCHEDULER_get_task_context ();
679 if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) 678 if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason))
680 return; 679 return;
681 LOG_DEBUG ("Disconnecting nse service of peers\n"); 680 LOG_DEBUG ("Disconnecting nse service of peers\n");