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/peerstore/peerstore_api.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/peerstore/peerstore_api.c')
-rw-r--r-- | src/peerstore/peerstore_api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c index a792f37ff..14117a333 100644 --- a/src/peerstore/peerstore_api.c +++ b/src/peerstore/peerstore_api.c | |||
@@ -358,10 +358,9 @@ rewatch_it (void *cls, const struct GNUNET_HashCode *key, void *value) | |||
358 | * Called when the iterate request is timedout | 358 | * Called when the iterate request is timedout |
359 | * | 359 | * |
360 | * @param cls a `struct GNUNET_PEERSTORE_IterateContext *` | 360 | * @param cls a `struct GNUNET_PEERSTORE_IterateContext *` |
361 | * @param tc Scheduler task context (unused) | ||
362 | */ | 361 | */ |
363 | static void | 362 | static void |
364 | iterate_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 363 | iterate_timeout (void *cls) |
365 | { | 364 | { |
366 | struct GNUNET_PEERSTORE_IterateContext *ic = cls; | 365 | struct GNUNET_PEERSTORE_IterateContext *ic = cls; |
367 | GNUNET_PEERSTORE_Processor callback; | 366 | GNUNET_PEERSTORE_Processor callback; |