aboutsummaryrefslogtreecommitdiff
path: root/src/identity/identity_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/identity/identity_api.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-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/identity/identity_api.c')
-rw-r--r--src/identity/identity_api.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 6b7ca5c44..1406ddd41 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -195,11 +195,9 @@ GNUNET_IDENTITY_ego_get_anonymous ()
195 * Try again to connect to the identity service. 195 * Try again to connect to the identity service.
196 * 196 *
197 * @param cls handle to the identity service. 197 * @param cls handle to the identity service.
198 * @param tc scheduler context
199 */ 198 */
200static void 199static void
201reconnect (void *cls, 200reconnect (void *cls);
202 const struct GNUNET_SCHEDULER_TaskContext *tc);
203 201
204 202
205/** 203/**
@@ -533,10 +531,9 @@ transmit_next (struct GNUNET_IDENTITY_Handle *h)
533 * Try again to connect to the identity service. 531 * Try again to connect to the identity service.
534 * 532 *
535 * @param cls handle to the identity service. 533 * @param cls handle to the identity service.
536 * @param tc scheduler context
537 */ 534 */
538static void 535static void
539reconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 536reconnect (void *cls)
540{ 537{
541 struct GNUNET_IDENTITY_Handle *h = cls; 538 struct GNUNET_IDENTITY_Handle *h = cls;
542 struct GNUNET_IDENTITY_Operation *op; 539 struct GNUNET_IDENTITY_Operation *op;