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/exit/gnunet-daemon-exit.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/exit') diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index c44fbbfbd..8456018ab 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c @@ -3139,8 +3139,7 @@ free_iterate (void *cls, * @param tc scheduler context */ static void -dummy_task (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +dummy_task (void *cls) { /* just terminate */ } @@ -3153,8 +3152,7 @@ dummy_task (void *cls, * @param tc scheduler context */ static void -cleanup (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +cleanup (void *cls) { unsigned int i; @@ -3428,11 +3426,9 @@ read_service_conf (void *cls, * DHT. This task is run periodically to do the DHT PUT. * * @param cls closure - * @param tc scheduler context */ static void -do_dht_put (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc); +do_dht_put (void *cls); /** @@ -3458,11 +3454,9 @@ dht_put_cont (void *cls, * DHT. This task is run periodically to do the DHT PUT. * * @param cls closure - * @param tc scheduler context */ static void -do_dht_put (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +do_dht_put (void *cls) { struct GNUNET_TIME_Absolute expiration; -- cgit v1.2.3