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/fs/gnunet-service-fs_push.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/fs/gnunet-service-fs_push.c')
-rw-r--r-- | src/fs/gnunet-service-fs_push.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fs/gnunet-service-fs_push.c b/src/fs/gnunet-service-fs_push.c index a31a4f626..a76a3827c 100644 --- a/src/fs/gnunet-service-fs_push.c +++ b/src/fs/gnunet-service-fs_push.c | |||
@@ -432,11 +432,9 @@ find_content (struct MigrationReadyPeer *mrp) | |||
432 | * migration | 432 | * migration |
433 | * | 433 | * |
434 | * @param cls unused | 434 | * @param cls unused |
435 | * @param tc scheduler context (also unused) | ||
436 | */ | 435 | */ |
437 | static void | 436 | static void |
438 | gather_migration_blocks (void *cls, | 437 | gather_migration_blocks (void *cls); |
439 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
440 | 438 | ||
441 | 439 | ||
442 | /** | 440 | /** |
@@ -569,11 +567,9 @@ process_migration_content (void *cls, | |||
569 | * migration | 567 | * migration |
570 | * | 568 | * |
571 | * @param cls unused | 569 | * @param cls unused |
572 | * @param tc scheduler context (also unused) | ||
573 | */ | 570 | */ |
574 | static void | 571 | static void |
575 | gather_migration_blocks (void *cls, | 572 | gather_migration_blocks (void *cls) |
576 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
577 | { | 573 | { |
578 | mig_task = NULL; | 574 | mig_task = NULL; |
579 | if (mig_size >= MAX_MIGRATION_QUEUE) | 575 | if (mig_size >= MAX_MIGRATION_QUEUE) |