aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/rps_api.c')
-rw-r--r--src/rps/rps_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c
index 9d6183103..cb377e840 100644
--- a/src/rps/rps_api.c
+++ b/src/rps/rps_api.c
@@ -193,7 +193,7 @@ GNUNET_RPS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg)
193 * @return a handle to cancel this request 193 * @return a handle to cancel this request
194 */ 194 */
195 struct GNUNET_RPS_Request_Handle * 195 struct GNUNET_RPS_Request_Handle *
196GNUNET_RPS_request_peers (struct GNUNET_RPS_Handle *h, uint64_t n, 196GNUNET_RPS_request_peers (struct GNUNET_RPS_Handle *h, uint32_t n,
197 GNUNET_RPS_NotifyReadyCB ready_cb, 197 GNUNET_RPS_NotifyReadyCB ready_cb,
198 void *cls) 198 void *cls)
199{ 199{
@@ -212,7 +212,7 @@ GNUNET_RPS_request_peers (struct GNUNET_RPS_Handle *h, uint64_t n,
212 //memcpy(&req_handlers[req_handlers_size-1], rh, sizeof(struct GNUNET_RPS_Request_Handle)); 212 //memcpy(&req_handlers[req_handlers_size-1], rh, sizeof(struct GNUNET_RPS_Request_Handle));
213 213
214 ev = GNUNET_MQ_msg (msg, GNUNET_MESSAGE_TYPE_RPS_CS_REQUEST); 214 ev = GNUNET_MQ_msg (msg, GNUNET_MESSAGE_TYPE_RPS_CS_REQUEST);
215 msg->num_peers = GNUNET_htonll (n); 215 msg->num_peers = htonl (n);
216 msg->n = rh->n; 216 msg->n = rh->n;
217 GNUNET_MQ_send (h->mq, ev); 217 GNUNET_MQ_send (h->mq, ev);
218 return rh; 218 return rh;