diff options
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r-- | src/statistics/statistics_api.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index f4a71cc21..e117e971c 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c | |||
@@ -242,14 +242,16 @@ struct GNUNET_STATISTICS_Handle | |||
242 | /** | 242 | /** |
243 | * Schedule the next action to be performed. | 243 | * Schedule the next action to be performed. |
244 | */ | 244 | */ |
245 | static void schedule_action (struct GNUNET_STATISTICS_Handle *h); | 245 | static void |
246 | schedule_action (struct GNUNET_STATISTICS_Handle *h); | ||
246 | 247 | ||
247 | /** | 248 | /** |
248 | * Try to (re)connect to the statistics service. | 249 | * Try to (re)connect to the statistics service. |
249 | * | 250 | * |
250 | * @return GNUNET_YES on success, GNUNET_NO on failure. | 251 | * @return GNUNET_YES on success, GNUNET_NO on failure. |
251 | */ | 252 | */ |
252 | static int try_connect (struct GNUNET_STATISTICS_Handle *ret); | 253 | static int |
254 | try_connect (struct GNUNET_STATISTICS_Handle *ret); | ||
253 | 255 | ||
254 | 256 | ||
255 | static void | 257 | static void |
@@ -500,8 +502,8 @@ receive_stats (void *cls, const struct GNUNET_MessageHeader *msg) | |||
500 | "Processing VALUE done, now reading more\n"); | 502 | "Processing VALUE done, now reading more\n"); |
501 | #endif | 503 | #endif |
502 | GNUNET_CLIENT_receive (h->client, &receive_stats, h, | 504 | GNUNET_CLIENT_receive (h->client, &receive_stats, h, |
503 | GNUNET_TIME_absolute_get_remaining (h->current-> | 505 | GNUNET_TIME_absolute_get_remaining (h-> |
504 | timeout)); | 506 | current->timeout)); |
505 | h->backoff = GNUNET_TIME_UNIT_MILLISECONDS; | 507 | h->backoff = GNUNET_TIME_UNIT_MILLISECONDS; |
506 | return; | 508 | return; |
507 | } | 509 | } |
@@ -572,8 +574,8 @@ transmit_get (struct GNUNET_STATISTICS_Handle *handle, size_t size, void *buf) | |||
572 | #endif | 574 | #endif |
573 | handle->receiving = GNUNET_YES; | 575 | handle->receiving = GNUNET_YES; |
574 | GNUNET_CLIENT_receive (handle->client, &receive_stats, handle, | 576 | GNUNET_CLIENT_receive (handle->client, &receive_stats, handle, |
575 | GNUNET_TIME_absolute_get_remaining (handle->current-> | 577 | GNUNET_TIME_absolute_get_remaining (handle-> |
576 | timeout)); | 578 | current->timeout)); |
577 | } | 579 | } |
578 | return msize; | 580 | return msize; |
579 | } | 581 | } |