aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/gnunet-service-statistics.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/statistics/gnunet-service-statistics.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/statistics/gnunet-service-statistics.c')
-rw-r--r--src/statistics/gnunet-service-statistics.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c
index 3aa3d5897..0126f149b 100644
--- a/src/statistics/gnunet-service-statistics.c
+++ b/src/statistics/gnunet-service-statistics.c
@@ -967,11 +967,9 @@ do_shutdown ()
967 * Task run during shutdown. 967 * Task run during shutdown.
968 * 968 *
969 * @param cls unused 969 * @param cls unused
970 * @param tc unused
971 */ 970 */
972static void 971static void
973shutdown_task (void *cls, 972shutdown_task (void *cls)
974 const struct GNUNET_SCHEDULER_TaskContext *tc)
975{ 973{
976 in_shutdown = GNUNET_YES; 974 in_shutdown = GNUNET_YES;
977 if (0 != client_count) 975 if (0 != client_count)