diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/statistics/gnunet-statistics.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) | |
download | gnunet-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/statistics/gnunet-statistics.c')
-rw-r--r-- | src/statistics/gnunet-statistics.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c index ff1ec39a0..2bf5959e3 100644 --- a/src/statistics/gnunet-statistics.c +++ b/src/statistics/gnunet-statistics.c | |||
@@ -158,11 +158,9 @@ cleanup (void *cls, int success) | |||
158 | * Function run on shutdown to clean up. | 158 | * Function run on shutdown to clean up. |
159 | * | 159 | * |
160 | * @param cls the statistics handle | 160 | * @param cls the statistics handle |
161 | * @param tc scheduler context | ||
162 | */ | 161 | */ |
163 | static void | 162 | static void |
164 | shutdown_task (void *cls, | 163 | shutdown_task (void *cls) |
165 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
166 | { | 164 | { |
167 | struct GNUNET_STATISTICS_Handle *h = cls; | 165 | struct GNUNET_STATISTICS_Handle *h = cls; |
168 | 166 | ||
@@ -185,8 +183,7 @@ shutdown_task (void *cls, | |||
185 | * @param tc schedueler context | 183 | * @param tc schedueler context |
186 | */ | 184 | */ |
187 | static void | 185 | static void |
188 | main_task (void *cls, | 186 | main_task (void *cls) |
189 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
190 | { | 187 | { |
191 | const struct GNUNET_CONFIGURATION_Handle *cfg = cls; | 188 | const struct GNUNET_CONFIGURATION_Handle *cfg = cls; |
192 | struct GNUNET_STATISTICS_Handle *h; | 189 | struct GNUNET_STATISTICS_Handle *h; |