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/transport/gnunet-service-transport_hello.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/transport/gnunet-service-transport_hello.c')
-rw-r--r-- | src/transport/gnunet-service-transport_hello.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_hello.c b/src/transport/gnunet-service-transport_hello.c index 77c382ed0..1a3c2c32e 100644 --- a/src/transport/gnunet-service-transport_hello.c +++ b/src/transport/gnunet-service-transport_hello.c | |||
@@ -172,11 +172,9 @@ address_generator (void *cls, | |||
172 | * all of the transports. | 172 | * all of the transports. |
173 | * | 173 | * |
174 | * @param cls unused | 174 | * @param cls unused |
175 | * @param tc scheduler context | ||
176 | */ | 175 | */ |
177 | static void | 176 | static void |
178 | refresh_hello_task (void *cls, | 177 | refresh_hello_task (void *cls) |
179 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
180 | { | 178 | { |
181 | struct GeneratorContext gc; | 179 | struct GeneratorContext gc; |
182 | 180 | ||
@@ -243,7 +241,7 @@ GST_hello_start (int friend_only, | |||
243 | hello_cb = cb; | 241 | hello_cb = cb; |
244 | hello_cb_cls = cb_cls; | 242 | hello_cb_cls = cb_cls; |
245 | friend_option = friend_only; | 243 | friend_option = friend_only; |
246 | refresh_hello_task (NULL, NULL); | 244 | refresh_hello_task (NULL); |
247 | } | 245 | } |
248 | 246 | ||
249 | 247 | ||