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_pe.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_pe.c')
-rw-r--r-- | src/fs/gnunet-service-fs_pe.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fs/gnunet-service-fs_pe.c b/src/fs/gnunet-service-fs_pe.c index 8e414e74a..b338c1a13 100644 --- a/src/fs/gnunet-service-fs_pe.c +++ b/src/fs/gnunet-service-fs_pe.c | |||
@@ -244,11 +244,9 @@ get_rp_key (struct GSF_RequestPlan *rp) | |||
244 | * Figure out when and how to transmit to the given peer. | 244 | * Figure out when and how to transmit to the given peer. |
245 | * | 245 | * |
246 | * @param cls the `struct GSF_ConnectedPeer` for transmission | 246 | * @param cls the `struct GSF_ConnectedPeer` for transmission |
247 | * @param tc scheduler context | ||
248 | */ | 247 | */ |
249 | static void | 248 | static void |
250 | schedule_peer_transmission (void *cls, | 249 | schedule_peer_transmission (void *cls); |
251 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
252 | 250 | ||
253 | 251 | ||
254 | /** | 252 | /** |
@@ -457,11 +455,9 @@ transmit_message_callback (void *cls, | |||
457 | * Figure out when and how to transmit to the given peer. | 455 | * Figure out when and how to transmit to the given peer. |
458 | * | 456 | * |
459 | * @param cls the `struct PeerPlan` | 457 | * @param cls the `struct PeerPlan` |
460 | * @param tc scheduler context | ||
461 | */ | 458 | */ |
462 | static void | 459 | static void |
463 | schedule_peer_transmission (void *cls, | 460 | schedule_peer_transmission (void *cls) |
464 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
465 | { | 461 | { |
466 | struct PeerPlan *pp = cls; | 462 | struct PeerPlan *pp = cls; |
467 | struct GSF_RequestPlan *rp; | 463 | struct GSF_RequestPlan *rp; |