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-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-transport.c')
-rw-r--r-- | src/transport/gnunet-transport.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c index 03bece6b7..bed9bdc85 100644 --- a/src/transport/gnunet-transport.c +++ b/src/transport/gnunet-transport.c | |||
@@ -487,11 +487,9 @@ destroy_it (void *cls, | |||
487 | * Stops monitoring activity. | 487 | * Stops monitoring activity. |
488 | * | 488 | * |
489 | * @param cls NULL | 489 | * @param cls NULL |
490 | * @param tc scheduler context | ||
491 | */ | 490 | */ |
492 | static void | 491 | static void |
493 | shutdown_task (void *cls, | 492 | shutdown_task (void *cls) |
494 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
495 | { | 493 | { |
496 | struct GNUNET_TIME_Relative duration; | 494 | struct GNUNET_TIME_Relative duration; |
497 | struct ValidationResolutionContext *cur; | 495 | struct ValidationResolutionContext *cur; |
@@ -598,8 +596,7 @@ shutdown_task (void *cls, | |||
598 | * We are done, shut down. | 596 | * We are done, shut down. |
599 | */ | 597 | */ |
600 | static void | 598 | static void |
601 | operation_timeout (void *cls, | 599 | operation_timeout (void *cls) |
602 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
603 | { | 600 | { |
604 | struct PeerResolutionContext *cur; | 601 | struct PeerResolutionContext *cur; |
605 | struct PeerResolutionContext *next; | 602 | struct PeerResolutionContext *next; |