diff options
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r-- | src/identity/identity_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index 3028ff3fd..d4ee6c01b 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c | |||
@@ -155,7 +155,7 @@ struct GNUNET_IDENTITY_Handle | |||
155 | /** | 155 | /** |
156 | * Task doing exponential back-off trying to reconnect. | 156 | * Task doing exponential back-off trying to reconnect. |
157 | */ | 157 | */ |
158 | GNUNET_SCHEDULER_TaskIdentifier reconnect_task; | 158 | struct GNUNET_SCHEDULER_Task * reconnect_task; |
159 | 159 | ||
160 | /** | 160 | /** |
161 | * Time for next connect retry. | 161 | * Time for next connect retry. |
@@ -210,7 +210,7 @@ reconnect (void *cls, | |||
210 | static void | 210 | static void |
211 | reschedule_connect (struct GNUNET_IDENTITY_Handle *h) | 211 | reschedule_connect (struct GNUNET_IDENTITY_Handle *h) |
212 | { | 212 | { |
213 | GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK); | 213 | GNUNET_assert (h->reconnect_task == NULL); |
214 | 214 | ||
215 | if (NULL != h->th) | 215 | if (NULL != h->th) |
216 | { | 216 | { |
@@ -542,7 +542,7 @@ reconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
542 | struct GNUNET_IDENTITY_Operation *op; | 542 | struct GNUNET_IDENTITY_Operation *op; |
543 | struct GNUNET_MessageHeader msg; | 543 | struct GNUNET_MessageHeader msg; |
544 | 544 | ||
545 | h->reconnect_task = GNUNET_SCHEDULER_NO_TASK; | 545 | h->reconnect_task = NULL; |
546 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 546 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
547 | "Connecting to identity service.\n"); | 547 | "Connecting to identity service.\n"); |
548 | GNUNET_assert (NULL == h->client); | 548 | GNUNET_assert (NULL == h->client); |
@@ -966,10 +966,10 @@ GNUNET_IDENTITY_disconnect (struct GNUNET_IDENTITY_Handle *h) | |||
966 | struct GNUNET_IDENTITY_Operation *op; | 966 | struct GNUNET_IDENTITY_Operation *op; |
967 | 967 | ||
968 | GNUNET_assert (NULL != h); | 968 | GNUNET_assert (NULL != h); |
969 | if (h->reconnect_task != GNUNET_SCHEDULER_NO_TASK) | 969 | if (h->reconnect_task != NULL) |
970 | { | 970 | { |
971 | GNUNET_SCHEDULER_cancel (h->reconnect_task); | 971 | GNUNET_SCHEDULER_cancel (h->reconnect_task); |
972 | h->reconnect_task = GNUNET_SCHEDULER_NO_TASK; | 972 | h->reconnect_task = NULL; |
973 | } | 973 | } |
974 | if (NULL != h->th) | 974 | if (NULL != h->th) |
975 | { | 975 | { |