From 29e6158507a0758192075ac6ece7ba8e75ddc49a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 9 Apr 2016 23:14:03 +0000 Subject: 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() --- src/fs/gnunet-service-fs.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/fs/gnunet-service-fs.c') diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index aebbe58546..2ba96334c1 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -184,11 +184,9 @@ static struct GNUNET_PeerIdentity my_id; * Task that periodically ages our cover traffic statistics. * * @param cls unused closure - * @param tc task context */ static void -age_cover_counters (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +age_cover_counters (void *cls) { GSF_cover_content_count = (GSF_cover_content_count * 15) / 16; GSF_cover_query_count = (GSF_cover_query_count * 15) / 16; @@ -531,11 +529,9 @@ handle_loc_sign (void *cls, * Task run during shutdown. * * @param cls unused - * @param tc unused */ static void -shutdown_task (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +shutdown_task (void *cls) { GSF_cadet_stop_client (); GSF_cadet_stop_server (); @@ -821,7 +817,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, (GNUNET_OK != main_init (server, cfg))) { GNUNET_SCHEDULER_shutdown (); - shutdown_task (NULL, NULL); + shutdown_task (NULL); return; } } -- cgit v1.2.3-18-g5258