diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/transport/test_plugin_transport.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) | |
download | gnunet-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.c | 7 |
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 | ||
186 | static void | 186 | static void |
187 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 187 | end_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 | ||
257 | static void | 257 | static void |
258 | wait_end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 258 | wait_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 | ||
327 | static void | 327 | static void |
328 | test_addr_string (void *cls, | 328 | test_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; |