aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/gnunet-consensus-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/consensus/gnunet-consensus-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/consensus/gnunet-consensus-profiler.c')
-rw-r--r--src/consensus/gnunet-consensus-profiler.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/consensus/gnunet-consensus-profiler.c b/src/consensus/gnunet-consensus-profiler.c
index 355ae60a3..4af7740e7 100644
--- a/src/consensus/gnunet-consensus-profiler.c
+++ b/src/consensus/gnunet-consensus-profiler.c
@@ -120,8 +120,8 @@ statistics_done_db (void *cls,
120 * @param subsystem name of subsystem that created the statistic 120 * @param subsystem name of subsystem that created the statistic
121 * @param name the name of the datum 121 * @param name the name of the datum
122 * @param value the current value 122 * @param value the current value
123 * @param is_persistent GNUNET_YES if the value is persistent, GNUNET_NO if not 123 * @param is_persistent #GNUNET_YES if the value is persistent, #GNUNET_NO if not
124 * @return GNUNET_OK to continue, GNUNET_SYSERR to abort iteration 124 * @return #GNUNET_OK to continue, #GNUNET_SYSERR to abort iteration
125 */ 125 */
126static int 126static int
127statistics_cb (void *cls, 127statistics_cb (void *cls,
@@ -140,7 +140,7 @@ statistics_cb (void *cls,
140 140
141 141
142static void 142static void
143destroy (void *cls, const struct GNUNET_SCHEDULER_TaskContext *ctx) 143destroy (void *cls)
144{ 144{
145 struct GNUNET_CONSENSUS_Handle *consensus = cls; 145 struct GNUNET_CONSENSUS_Handle *consensus = cls;
146 146
@@ -521,4 +521,3 @@ main (int argc, char **argv)
521 options, &run, NULL, GNUNET_YES); 521 options, &run, NULL, GNUNET_YES);
522 return 0; 522 return 0;
523} 523}
524