aboutsummaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-01-18 03:23:23 +0000
committerJulius Bünger <buenger@mytum.de>2015-01-18 03:23:23 +0000
commite993426d1447a693c96920beb5bb469f78f1fdae (patch)
tree79fdf17dcf8be4b17daa3708330df05cd33ca00a /src/rps
parent42efb9525e1ed4a389b9bbd2c2ef9900e6f7f7a6 (diff)
fixed message size
Diffstat (limited to 'src/rps')
-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 9d6183103a..cb377e8405 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)
* @return a handle to cancel this request
*/
struct GNUNET_RPS_Request_Handle *
-GNUNET_RPS_request_peers (struct GNUNET_RPS_Handle *h, uint64_t n,
+GNUNET_RPS_request_peers (struct GNUNET_RPS_Handle *h, uint32_t n,
GNUNET_RPS_NotifyReadyCB ready_cb,
void *cls)
{
@@ -212,7 +212,7 @@ GNUNET_RPS_request_peers (struct GNUNET_RPS_Handle *h, uint64_t n,
//memcpy(&req_handlers[req_handlers_size-1], rh, sizeof(struct GNUNET_RPS_Request_Handle));
ev = GNUNET_MQ_msg (msg, GNUNET_MESSAGE_TYPE_RPS_CS_REQUEST);
- msg->num_peers = GNUNET_htonll (n);
+ msg->num_peers = htonl (n);
msg->n = rh->n;
GNUNET_MQ_send (h->mq, ev);
return rh;