aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.h
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-01-18 05:06:13 +0000
committerJulius Bünger <buenger@mytum.de>2015-01-18 05:06:13 +0000
commitd9e72f536edc429a375957bcbcc9cc9603ce965b (patch)
tree00f6af64d7fd94f57c24105e5f210bd81be22ed5 /src/rps/gnunet-service-rps_sampler.h
parente993426d1447a693c96920beb5bb469f78f1fdae (diff)
fixed integer sizes and _get_rand_peer()
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.h')
-rw-r--r--src/rps/gnunet-service-rps_sampler.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.h b/src/rps/gnunet-service-rps_sampler.h
index 41afe8da99..451d3cdb0c 100644
--- a/src/rps/gnunet-service-rps_sampler.h
+++ b/src/rps/gnunet-service-rps_sampler.h
@@ -57,7 +57,7 @@ typedef void
*/
typedef void
(*RPS_sampler_n_rand_peers_ready_cb) (void *cls,
- struct GNUNET_PeerIdentity *ids, uint64_t num_peers);
+ struct GNUNET_PeerIdentity *ids, uint32_t num_peers);
/**
@@ -124,7 +124,7 @@ RPS_sampler_reinitialise_by_value (const struct GNUNET_PeerIdentity *id);
* Only used internally
*/
const struct GNUNET_PeerIdentity *
-RPS_sampler_get_n_rand_peers_ (uint64_t n);
+RPS_sampler_get_n_rand_peers_ (uint32_t n);
/**
@@ -140,7 +140,7 @@ RPS_sampler_get_n_rand_peers_ (uint64_t n);
*/
void
RPS_sampler_get_n_rand_peers (RPS_sampler_n_rand_peers_ready_cb cb,
- void *cls, uint64_t num_peers);
+ void *cls, uint32_t num_peers);
/**
@@ -150,7 +150,7 @@ RPS_sampler_get_n_rand_peers (RPS_sampler_n_rand_peers_ready_cb cb,
*
* @return the number of occurrences of id.
*/
- uint64_t
+ uint32_t
RPS_sampler_count_id (const struct GNUNET_PeerIdentity *id);