aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r--src/rps/gnunet-service-rps.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index ec6c651d9..40f576d3e 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -2347,9 +2347,9 @@ clients_notify_stream_peer (uint64_t num_peers,
2347 * Put random peer from sampler into the view as history update. 2347 * Put random peer from sampler into the view as history update.
2348 */ 2348 */
2349static void 2349static void
2350hist_update (void *cls, 2350hist_update (const struct GNUNET_PeerIdentity *ids,
2351 struct GNUNET_PeerIdentity *ids, 2351 uint32_t num_peers,
2352 uint32_t num_peers) 2352 void *cls)
2353{ 2353{
2354 unsigned int i; 2354 unsigned int i;
2355 (void) cls; 2355 (void) cls;
@@ -2852,9 +2852,9 @@ nse_callback (void *cls,
2852 * Sends those to the requesting client. 2852 * Sends those to the requesting client.
2853 */ 2853 */
2854static void 2854static void
2855client_respond (void *cls, 2855client_respond (const struct GNUNET_PeerIdentity *peer_ids,
2856 struct GNUNET_PeerIdentity *peer_ids, 2856 uint32_t num_peers,
2857 uint32_t num_peers) 2857 void *cls)
2858{ 2858{
2859 struct ReplyCls *reply_cls = cls; 2859 struct ReplyCls *reply_cls = cls;
2860 uint32_t i; 2860 uint32_t i;
@@ -2937,9 +2937,9 @@ handle_client_request (void *cls,
2937 reply_cls->id = ntohl (msg->id); 2937 reply_cls->id = ntohl (msg->id);
2938 reply_cls->cli_ctx = cli_ctx; 2938 reply_cls->cli_ctx = cli_ctx;
2939 reply_cls->req_handle = RPS_sampler_get_n_rand_peers (client_sampler, 2939 reply_cls->req_handle = RPS_sampler_get_n_rand_peers (client_sampler,
2940 num_peers,
2940 client_respond, 2941 client_respond,
2941 reply_cls, 2942 reply_cls);
2942 num_peers);
2943 2943
2944 GNUNET_assert (NULL != cli_ctx); 2944 GNUNET_assert (NULL != cli_ctx);
2945 GNUNET_CONTAINER_DLL_insert (cli_ctx->rep_cls_head, 2945 GNUNET_CONTAINER_DLL_insert (cli_ctx->rep_cls_head,
@@ -3894,9 +3894,9 @@ do_round (void *cls)
3894 3894
3895 /* Update view with peers from history */ 3895 /* Update view with peers from history */
3896 RPS_sampler_get_n_rand_peers (prot_sampler, 3896 RPS_sampler_get_n_rand_peers (prot_sampler,
3897 final_size - second_border,
3897 hist_update, 3898 hist_update,
3898 NULL, 3899 NULL);
3899 final_size - second_border);
3900 // TODO change the peer_flags accordingly 3900 // TODO change the peer_flags accordingly
3901 3901
3902 for (i = 0; i < View_size (); i++) 3902 for (i = 0; i < View_size (); i++)