aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-testbed-profiler.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/testbed/gnunet-testbed-profiler.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz
gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/testbed/gnunet-testbed-profiler.c')
-rw-r--r--src/testbed/gnunet-testbed-profiler.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c
index 350b7379d..308ec0386 100644
--- a/src/testbed/gnunet-testbed-profiler.c
+++ b/src/testbed/gnunet-testbed-profiler.c
@@ -107,10 +107,9 @@ static int noninteractive;
107 * Shutdown nicely 107 * Shutdown nicely
108 * 108 *
109 * @param cls NULL 109 * @param cls NULL
110 * @param tc the task context
111 */ 110 */
112static void 111static void
113do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 112do_shutdown (void *cls)
114{ 113{
115 shutdown_task = NULL; 114 shutdown_task = NULL;
116 if (NULL != abort_task) 115 if (NULL != abort_task)
@@ -131,10 +130,9 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
131 * abort task to run on test timed out 130 * abort task to run on test timed out
132 * 131 *
133 * @param cls NULL 132 * @param cls NULL
134 * @param tc the task context
135 */ 133 */
136static void 134static void
137do_abort (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 135do_abort (void *cls)
138{ 136{
139 LOG (GNUNET_ERROR_TYPE_WARNING, "Aborting\n"); 137 LOG (GNUNET_ERROR_TYPE_WARNING, "Aborting\n");
140 abort_task = NULL; 138 abort_task = NULL;