projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
200d05b
)
RPS api: Fix type of callback and handle
author
Julius Bünger
<buenger@mytum.de>
Mon, 8 Apr 2019 12:14:21 +0000
(14:14 +0200)
committer
Julius Bünger
<buenger@mytum.de>
Mon, 8 Apr 2019 12:14:21 +0000
(14:14 +0200)
src/rps/rps_api.c
patch
|
blob
|
history
diff --git
a/src/rps/rps_api.c
b/src/rps/rps_api.c
index 83dff27e830946b0ebfee76bd5a742299f366202..fd0c12f47a8ca40d259ec37eca00b7d1aee5e861 100644
(file)
--- 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);
}