aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport.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/transport/test_plugin_transport.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/transport/test_plugin_transport.c')
-rw-r--r--src/transport/test_plugin_transport.c7
1 files changed, 3 insertions, 4 deletions
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 ()
184 184
185 185
186static void 186static void
187end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 187end_badly (void *cls)
188{ 188{
189 struct AddressWrapper *w; 189 struct AddressWrapper *w;
190 int c = 0; 190 int c = 0;
@@ -255,7 +255,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
255} 255}
256 256
257static void 257static void
258wait_end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 258wait_end (void *cls)
259{ 259{
260 timeout_wait = NULL; 260 timeout_wait = NULL;
261 if (0 == addresses_reported) 261 if (0 == addresses_reported)
@@ -325,8 +325,7 @@ address_pretty_printer_cb (void *cls, const char *address, int res)
325 325
326 326
327static void 327static void
328test_addr_string (void *cls, 328test_addr_string (void *cls)
329 const struct GNUNET_SCHEDULER_TaskContext *tc)
330{ 329{
331 struct AddressWrapper *w = cls; 330 struct AddressWrapper *w = cls;
332 void *s2a; 331 void *s2a;