summaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-09-20 01:04:17 +0200
committerJulius Bünger <buenger@mytum.de>2018-09-20 01:07:53 +0200
commit69f439525cabfd0b65d5875e49d306588587cb23 (patch)
treeba8200ce6dbb264021f42e05f2d119aa9e4917aa /src/rps/gnunet-service-rps_sampler.c
parentc50386476c7a79efd87d4b1b36f9c740d74dd9f8 (diff)
Be a little bit more consistent in style
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.c')
-rw-r--r--src/rps/gnunet-service-rps_sampler.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.c b/src/rps/gnunet-service-rps_sampler.c
index fdd500aa1..0de15bbc0 100644
--- a/src/rps/gnunet-service-rps_sampler.c
+++ b/src/rps/gnunet-service-rps_sampler.c
@@ -272,7 +272,7 @@ check_n_peers_ready (void *cls,
LOG (GNUNET_ERROR_TYPE_DEBUG,
"returning %" PRIX32 " peers to the client\n",
req_handle->num_peers);
- req_handle->callback (req_handle->cls, req_handle->ids, req_handle->num_peers);
+ req_handle->callback (req_handle->ids, req_handle->num_peers, req_handle->cls);
RPS_sampler_request_cancel (req_handle);
}
@@ -647,14 +647,14 @@ sampler_mod_get_rand_peer (void *cls)
}
/* More reasons to wait could be added here */
- GNUNET_STATISTICS_set (stats,
- "# client sampler element input",
- s_elem->num_peers,
- GNUNET_NO);
- GNUNET_STATISTICS_set (stats,
- "# client sampler element change",
- s_elem->num_change,
- GNUNET_NO);
+// GNUNET_STATISTICS_set (stats,
+// "# client sampler element input",
+// s_elem->num_peers,
+// GNUNET_NO);
+// GNUNET_STATISTICS_set (stats,
+// "# client sampler element change",
+// s_elem->num_change,
+// GNUNET_NO);
RPS_sampler_elem_reinit (s_elem);
s_elem->last_client_request = GNUNET_TIME_absolute_get ();
@@ -683,9 +683,9 @@ sampler_mod_get_rand_peer (void *cls)
*/
struct RPS_SamplerRequestHandle *
RPS_sampler_get_n_rand_peers (struct RPS_Sampler *sampler,
+ uint32_t num_peers,
RPS_sampler_n_rand_peers_ready_cb cb,
- void *cls,
- uint32_t num_peers)
+ void *cls)
{
uint32_t i;
struct RPS_SamplerRequestHandle *req_handle;