gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: RPS api: Fix type of callba


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: RPS api: Fix type of callback and handle
Date: Mon, 08 Apr 2019 14:15:31 +0200

This is an automated email from the git hooks/post-receive script.

julius-buenger pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new d6da7d33d RPS api: Fix type of callback and handle
d6da7d33d is described below

commit d6da7d33dc20e35733527315d4ea76649370c00e
Author: Julius Bünger <address@hidden>
AuthorDate: Mon Apr 8 14:14:21 2019 +0200

    RPS api: Fix type of callback and handle
---
 src/rps/rps_api.c | 12 +++++-------
 1 file 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);
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]