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_cadet_client.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_cadet_client.c')
-rw-r--r-- | src/fs/gnunet-service-fs_cadet_client.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fs/gnunet-service-fs_cadet_client.c b/src/fs/gnunet-service-fs_cadet_client.c index 417468970..3ea2efa67 100644 --- a/src/fs/gnunet-service-fs_cadet_client.c +++ b/src/fs/gnunet-service-fs_cadet_client.c | |||
@@ -246,11 +246,9 @@ reset_cadet (struct CadetHandle *mh) | |||
246 | * Task called when it is time to destroy an inactive cadet channel. | 246 | * Task called when it is time to destroy an inactive cadet channel. |
247 | * | 247 | * |
248 | * @param cls the `struct CadetHandle` to tear down | 248 | * @param cls the `struct CadetHandle` to tear down |
249 | * @param tc scheduler context, unused | ||
250 | */ | 249 | */ |
251 | static void | 250 | static void |
252 | cadet_timeout (void *cls, | 251 | cadet_timeout (void *cls) |
253 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
254 | { | 252 | { |
255 | struct CadetHandle *mh = cls; | 253 | struct CadetHandle *mh = cls; |
256 | struct GNUNET_CADET_Channel *tun; | 254 | struct GNUNET_CADET_Channel *tun; |
@@ -270,11 +268,9 @@ cadet_timeout (void *cls, | |||
270 | * Task called when it is time to reset an cadet. | 268 | * Task called when it is time to reset an cadet. |
271 | * | 269 | * |
272 | * @param cls the `struct CadetHandle` to tear down | 270 | * @param cls the `struct CadetHandle` to tear down |
273 | * @param tc scheduler context, unused | ||
274 | */ | 271 | */ |
275 | static void | 272 | static void |
276 | reset_cadet_task (void *cls, | 273 | reset_cadet_task (void *cls) |
277 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
278 | { | 274 | { |
279 | struct CadetHandle *mh = cls; | 275 | struct CadetHandle *mh = cls; |
280 | 276 | ||