aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/statistics_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r--src/statistics/statistics_api.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index 1592483f8..2b491df72 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -462,11 +462,9 @@ try_connect (struct GNUNET_STATISTICS_Handle *h)
462 * We've waited long enough, reconnect now. 462 * We've waited long enough, reconnect now.
463 * 463 *
464 * @param cls the `struct GNUNET_STATISTICS_Handle` to reconnect 464 * @param cls the `struct GNUNET_STATISTICS_Handle` to reconnect
465 * @param tc scheduler context (unused)
466 */ 465 */
467static void 466static void
468reconnect_task (void *cls, 467reconnect_task (void *cls)
469 const struct GNUNET_SCHEDULER_TaskContext *tc)
470{ 468{
471 struct GNUNET_STATISTICS_Handle *h = cls; 469 struct GNUNET_STATISTICS_Handle *h = cls;
472 470
@@ -479,11 +477,9 @@ reconnect_task (void *cls,
479 * Task used by 'reconnect_later' to shutdown the handle 477 * Task used by 'reconnect_later' to shutdown the handle
480 * 478 *
481 * @param cls the statistics handle 479 * @param cls the statistics handle
482 * @param tc scheduler context
483 */ 480 */
484static void 481static void
485do_destroy (void *cls, 482do_destroy (void *cls)
486 const struct GNUNET_SCHEDULER_TaskContext *tc)
487{ 483{
488 struct GNUNET_STATISTICS_Handle *h = cls; 484 struct GNUNET_STATISTICS_Handle *h = cls;
489 485
@@ -627,11 +623,9 @@ process_watch_value (struct GNUNET_STATISTICS_Handle *h,
627 * Task used to destroy the statistics handle. 623 * Task used to destroy the statistics handle.
628 * 624 *
629 * @param cls the `struct GNUNET_STATISTICS_Handle` 625 * @param cls the `struct GNUNET_STATISTICS_Handle`
630 * @param tc the scheduler context
631 */ 626 */
632static void 627static void
633destroy_task (void *cls, 628destroy_task (void *cls)
634 const struct GNUNET_SCHEDULER_TaskContext *tc)
635{ 629{
636 struct GNUNET_STATISTICS_Handle *h = cls; 630 struct GNUNET_STATISTICS_Handle *h = cls;
637 631
@@ -1159,11 +1153,9 @@ schedule_action (struct GNUNET_STATISTICS_Handle *h)
1159 * call the continuation. 1153 * call the continuation.
1160 * 1154 *
1161 * @param cls the `struct GNUNET_STATISTICS_GetHandle` 1155 * @param cls the `struct GNUNET_STATISTICS_GetHandle`
1162 * @param tc scheduler context
1163 */ 1156 */
1164static void 1157static void
1165run_get_timeout (void *cls, 1158run_get_timeout (void *cls)
1166 const struct GNUNET_SCHEDULER_TaskContext *tc)
1167{ 1159{
1168 struct GNUNET_STATISTICS_GetHandle *gh = cls; 1160 struct GNUNET_STATISTICS_GetHandle *gh = cls;
1169 GNUNET_STATISTICS_Callback cont = gh->cont; 1161 GNUNET_STATISTICS_Callback cont = gh->cont;