summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-04-08 14:14:21 +0200
committerJulius Bünger <buenger@mytum.de>2019-04-08 14:14:21 +0200
commitd6da7d33dc20e35733527315d4ea76649370c00e (patch)
treef96665d90bf04f31bcf296f5541673c8a733e90b /src
parent200d05b44a96d6fec00e28736038c838c679f650 (diff)
RPS api: Fix type of callback and handle
Diffstat (limited to 'src')
-rw-r--r--src/rps/rps_api.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c
index 83dff27e8..fd0c12f47 100644
--- a/src/rps/rps_api.c
+++ b/src/rps/rps_api.c
@@ -383,16 +383,14 @@ peer_info_ready_cb (const struct GNUNET_PeerIdentity *peers,
double probability,
uint32_t num_observed)
{
- struct GNUNET_RPS_Request_Handle *rh = cls;
- (void) probability;
- (void) num_observed;
- uint32_t num_peers = 1;
+ struct GNUNET_RPS_Request_Handle_Single_Info *rh = cls;
rh->sampler_rh = NULL;
rh->ready_cb (rh->ready_cb_cls,
- num_peers,
- peers);
- GNUNET_RPS_request_cancel (rh);
+ peers,
+ probability,
+ num_observed);
+ GNUNET_RPS_request_single_info_cancel (rh);
}