X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftestbed%2Ftestbed_logger_api.c;h=56290221860ab645d9c0b82084a237305d4fc7a7;hb=27c12911f4f2aba2d90099270d70de846e83854f;hp=24def4bcb336a8444d6c84c907d2c6bb0a8df34c;hpb=07ec41e414c2e47df842b83acc481c257ce4de15;p=oweals%2Fgnunet.git diff --git a/src/testbed/testbed_logger_api.c b/src/testbed/testbed_logger_api.c index 24def4bcb..562902218 100644 --- a/src/testbed/testbed_logger_api.c +++ b/src/testbed/testbed_logger_api.c @@ -21,7 +21,7 @@ /** * @file testbed/testbed_logger_api.c * @brief Client-side routines for communicating with the tesbted logger service - * @author Sree Harsha Totakura + * @author Sree Harsha Totakura */ #include "platform.h" @@ -152,14 +152,13 @@ struct GNUNET_TESTBED_LOGGER_Handle /** * Cancels the flush timeout task * - * @param - * @return + * @param h handle to the logger */ static void cancel_timeout_flush (struct GNUNET_TESTBED_LOGGER_Handle *h) { GNUNET_SCHEDULER_cancel (h->timeout_flush_task); - h->timeout_flush_task = GNUNET_SCHEDULER_NO_TASK; + h->timeout_flush_task = GNUNET_SCHEDULER_NO_TASK; } @@ -311,7 +310,7 @@ dispatch_buffer (struct GNUNET_TESTBED_LOGGER_Handle *h) msg = GNUNET_realloc (h->buf, msize); h->buf = NULL; memmove (&msg[1], msg, h->bs); - h->bs = 0; + h->bs = 0; msg->type = htons (GNUNET_MESSAGE_TYPE_TESTBED_LOGGER_MSG); msg->size = htons (msize); queue_message (h, msg); @@ -330,7 +329,7 @@ GNUNET_TESTBED_LOGGER_connect (const struct GNUNET_CONFIGURATION_Handle *cfg) { struct GNUNET_TESTBED_LOGGER_Handle *h; struct GNUNET_CLIENT_Connection *client; - + client = GNUNET_CLIENT_connect ("testbed-logger", cfg); if (NULL == client) return NULL; @@ -375,7 +374,7 @@ GNUNET_TESTBED_LOGGER_disconnect (struct GNUNET_TESTBED_LOGGER_Handle *h) void GNUNET_TESTBED_LOGGER_write (struct GNUNET_TESTBED_LOGGER_Handle *h, const void *data, size_t size) -{ +{ size_t fit_size; GNUNET_assert (0 != size); @@ -446,7 +445,7 @@ GNUNET_TESTBED_LOGGER_flush (struct GNUNET_TESTBED_LOGGER_Handle *h, h->cb = cb; h->cb_cls = cb_cls; GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == h->timeout_flush_task); - h->timeout_flush_task = + h->timeout_flush_task = GNUNET_SCHEDULER_add_delayed (timeout, &timeout_flush, h); if (NULL == h->buf) {