[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 01/03: Change cosmetics - keep compiler happy
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 01/03: Change cosmetics - keep compiler happy |
Date: |
Thu, 06 Sep 2018 03:21:10 +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 2b1b981479da64d13d3ae8389964b029e9f268b6
Author: Julius Bünger <address@hidden>
AuthorDate: Thu Sep 6 03:15:41 2018 +0200
Change cosmetics - keep compiler happy
---
src/rps/gnunet-rps.c | 6 ++++++
src/rps/rps_api.c | 3 +++
2 files changed, 9 insertions(+)
diff --git a/src/rps/gnunet-rps.c b/src/rps/gnunet-rps.c
index b3785a733..03b2c8ab7 100644
--- a/src/rps/gnunet-rps.c
+++ b/src/rps/gnunet-rps.c
@@ -63,6 +63,8 @@ static uint64_t num_view_updates;
static void
do_shutdown (void *cls)
{
+ (void) cls;
+
if (NULL != req_handle)
GNUNET_RPS_request_cancel (req_handle);
GNUNET_RPS_disconnect (rps_handle);
@@ -83,6 +85,7 @@ reply_handle (void *cls,
const struct GNUNET_PeerIdentity *recv_peers)
{
uint64_t i;
+ (void) cls;
req_handle = NULL;
for (i = 0; i < n; i++)
@@ -108,6 +111,7 @@ view_update_handle (void *cls,
const struct GNUNET_PeerIdentity *recv_peers)
{
uint64_t i;
+ (void) cls;
if (0 == n)
{
@@ -148,6 +152,8 @@ run (void *cls,
{
static uint64_t num_peers;
static struct GNUNET_PeerIdentity zero_pid;
+ (void) cls;
+ (void) cfgfile;
rps_handle = GNUNET_RPS_connect (cfg);
if (NULL == rps_handle)
diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c
index ca80e25e8..ac462f3a0 100644
--- a/src/rps/rps_api.c
+++ b/src/rps/rps_api.c
@@ -158,6 +158,7 @@ resend_requests_iterator (void *cls, uint32_t key, void
*value)
{
const struct GNUNET_RPS_Handle *h = cls;
const struct GNUNET_RPS_Request_Handle *req_handle = value;
+ (void) key;
send_request (h, req_handle->id, req_handle->num_peers);
return GNUNET_YES; /* continue iterating */
@@ -195,6 +196,7 @@ check_reply (void *cls,
{
uint16_t msize = ntohs (msg->header.size);
uint32_t num_peers = ntohl (msg->num_peers);
+ (void) cls;
msize -= sizeof (struct GNUNET_RPS_CS_ReplyMessage);
if ( (msize / sizeof (struct GNUNET_PeerIdentity) != num_peers) ||
@@ -289,6 +291,7 @@ check_view_update (void *cls,
{
uint16_t msize = ntohs (msg->header.size);
uint32_t num_peers = ntohl (msg->num_peers);
+ (void) cls;
msize -= sizeof (struct GNUNET_RPS_CS_DEBUG_ViewReply);
if ( (msize / sizeof (struct GNUNET_PeerIdentity) != num_peers) ||
--
To stop receiving notification emails like this one, please contact
address@hidden