[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 04/05: Fix details and style
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 04/05: Fix details and style |
Date: |
Wed, 26 Sep 2018 21:39:15 +0200 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
commit 1d44c1e60ef16c747e02bff9ee5bd682e6f89569
Author: Julius Bünger <address@hidden>
AuthorDate: Wed Sep 26 21:37:58 2018 +0200
Fix details and style
---
src/rps/gnunet-service-rps.c | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index aa5d8af13..64cb5ac98 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -2733,24 +2733,29 @@ handle_client_view_request (void *cls,
}
+/**
+ * @brief Handle the cancellation of the view updates.
+ *
+ * @param cls The client context
+ * @param msg Unused
+ */
static void
-handle_client_view_request_cancel (void *cls,
- const struct GNUNET_MessageHeader *msg)
+handle_client_view_cancel (void *cls,
+ const struct GNUNET_MessageHeader *msg)
{
struct ClientContext *cli_ctx = cls;
- uint64_t num_updates;
+ (void) msg;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Client does not want to receive updates of view any more.\n",
- num_updates);
+ "Client does not want to receive updates of view any more.\n");
GNUNET_assert (NULL != cli_ctx);
cli_ctx->view_updates_left = 0;
+ GNUNET_SERVICE_client_continue (cli_ctx->client);
if (GNUNET_YES == cli_ctx->stream_update)
{
destroy_cli_ctx (cli_ctx);
}
- GNUNET_SERVICE_client_continue (cli_ctx->client);
}
@@ -3777,7 +3782,6 @@ static void
shutdown_task (void *cls)
{
struct ClientContext *client_ctx;
- struct ReplyCls *reply_cls;
(void) cls;
in_shutdown = GNUNET_YES;
@@ -4100,7 +4104,7 @@ GNUNET_SERVICE_MAIN
GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_REQUEST,
struct GNUNET_RPS_CS_DEBUG_ViewRequest,
NULL),
- GNUNET_MQ_hd_fixed_size (client_view_request_cancel,
+ GNUNET_MQ_hd_fixed_size (client_view_cancel,
GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_CANCEL,
struct GNUNET_MessageHeader,
NULL),
--
To stop receiving notification emails like this one, please contact
address@hidden