[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/05: rps: get rid of warnings about harmless uninitialized va
From: |
gnunet |
Subject: |
[gnunet] 01/05: rps: get rid of warnings about harmless uninitialized variables |
Date: |
Mon, 16 Nov 2020 23:03:58 +0100 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
commit 0108f132a418aa48222e2798dba4de38de8dfef5
Author: Julius Bünger <buenger@mytum.de>
AuthorDate: Mon Nov 16 22:53:30 2020 +0100
rps: get rid of warnings about harmless uninitialized variables
---
src/rps/gnunet-service-rps.c | 2 ++
src/rps/rps-sampler_client.c | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index ecbc8e208..0e3759c4c 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -596,8 +596,10 @@ static const uint32_t num_valid_peers_max = UINT32_MAX;
static void
do_round (void *cls);
+#if ENABLE_MALICIOUS
static void
do_mal_round (void *cls);
+#endif /* ENABLE_MALICIOUS */
/**
diff --git a/src/rps/rps-sampler_client.c b/src/rps/rps-sampler_client.c
index 5ab854e01..714943b51 100644
--- a/src/rps/rps-sampler_client.c
+++ b/src/rps/rps-sampler_client.c
@@ -379,7 +379,8 @@ sampler_mod_get_rand_peer (void *cls)
return;
}
/* compute probability */
- /* Currently disabled due to numerical limitations */
+ /* FIXME: Currently disabled due to numerical limitations */
+ prob_observed_n = 0; // Inititialise to some value
// prob_observed_n = prob_observed_n_peers (sampler->num_peers_estim,
// s_elem->num_peers,
// sampler->deficiency_factor);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.