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/transport/test_plugin_transport.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/transport/test_plugin_transport.c') diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index b906020bb..e75cb7c7f 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c @@ -184,7 +184,7 @@ end () static void -end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) +end_badly (void *cls) { struct AddressWrapper *w; int c = 0; @@ -255,7 +255,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) } static void -wait_end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) +wait_end (void *cls) { timeout_wait = NULL; if (0 == addresses_reported) @@ -325,8 +325,7 @@ address_pretty_printer_cb (void *cls, const char *address, int res) static void -test_addr_string (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +test_addr_string (void *cls) { struct AddressWrapper *w = cls; void *s2a; -- cgit v1.2.3