X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fstatistics%2Fstatistics_api.c;h=ad4453b2a62a0e8515317e0d972bdd1c740aabab;hb=5b32752cd7b02adcb8e6fec7798637638c6f63a0;hp=e8aa9cf9c55a5d8d65c7ca3c0c8502ece81ebc88;hpb=6a131ab255bb3419eb0e59a24879556d5b1c75d3;p=oweals%2Fgnunet.git diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index e8aa9cf9c..ad4453b2a 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -678,7 +678,7 @@ try_connect (struct GNUNET_STATISTICS_Handle *h) return GNUNET_NO; if (NULL != h->mq) return GNUNET_YES; - h->mq = GNUNET_CLIENT_connecT (h->cfg, + h->mq = GNUNET_CLIENT_connect (h->cfg, "statistics", handlers, &mq_error_handler, @@ -1015,7 +1015,7 @@ schedule_action (void *cls) return; } if (0 < GNUNET_MQ_get_length (h->mq)) - return; /* Wait for queue to be reduced more */ + return; /* Wait for queue to be reduced more */ /* schedule next action */ while (NULL == h->current) { @@ -1253,8 +1253,10 @@ add_setter_action (struct GNUNET_STATISTICS_Handle *h, } for (ai = h->action_head; NULL != ai; ai = ai->next) { - if (! ( (0 == strcmp (ai->subsystem, h->subsystem)) && - (0 == strcmp (ai->name, name)) && + if (! ( (0 == strcmp (ai->subsystem, + h->subsystem)) && + (0 == strcmp (ai->name, + name)) && ( (ACTION_UPDATE == ai->type) || (ACTION_SET == ai->type) ) ) ) continue;