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/gnunet-service-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/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index d5c0d4a86..9fde3d83e 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -250,11 +250,9 @@ process_payload (const struct GNUNET_HELLO_Address *address, | |||
250 | * Task to asynchronously terminate a session. | 250 | * Task to asynchronously terminate a session. |
251 | * | 251 | * |
252 | * @param cls the `struct GNUNET_ATS_SessionKiller` with the information for the kill | 252 | * @param cls the `struct GNUNET_ATS_SessionKiller` with the information for the kill |
253 | * @param tc scheduler context | ||
254 | */ | 253 | */ |
255 | static void | 254 | static void |
256 | kill_session_task (void *cls, | 255 | kill_session_task (void *cls) |
257 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
258 | { | 256 | { |
259 | struct GNUNET_ATS_SessionKiller *sk = cls; | 257 | struct GNUNET_ATS_SessionKiller *sk = cls; |
260 | 258 | ||
@@ -756,11 +754,9 @@ ats_request_address_change (void *cls, | |||
756 | * and cancels pending validations. | 754 | * and cancels pending validations. |
757 | * | 755 | * |
758 | * @param cls closure, unused | 756 | * @param cls closure, unused |
759 | * @param tc task context (unused) | ||
760 | */ | 757 | */ |
761 | static void | 758 | static void |
762 | shutdown_task (void *cls, | 759 | shutdown_task (void *cls) |
763 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
764 | { | 760 | { |
765 | GST_neighbours_stop (); | 761 | GST_neighbours_stop (); |
766 | GST_plugins_unload (); | 762 | GST_plugins_unload (); |