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/util/crypto_hash_file.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/util/crypto_hash_file.c')
-rw-r--r-- | src/util/crypto_hash_file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/crypto_hash_file.c b/src/util/crypto_hash_file.c index 8bb03561b..f2d49d164 100644 --- a/src/util/crypto_hash_file.c +++ b/src/util/crypto_hash_file.c | |||
@@ -117,10 +117,9 @@ file_hash_finish (struct GNUNET_CRYPTO_FileHashContext *fhc, | |||
117 | * File hashing task. | 117 | * File hashing task. |
118 | * | 118 | * |
119 | * @param cls closure | 119 | * @param cls closure |
120 | * @param tc context | ||
121 | */ | 120 | */ |
122 | static void | 121 | static void |
123 | file_hash_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 122 | file_hash_task (void *cls) |
124 | { | 123 | { |
125 | struct GNUNET_CRYPTO_FileHashContext *fhc = cls; | 124 | struct GNUNET_CRYPTO_FileHashContext *fhc = cls; |
126 | struct GNUNET_HashCode *res; | 125 | struct GNUNET_HashCode *res; |