aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent42efb9525e1ed4a389b9bbd2c2ef9900e6f7f7a6 (diff)
fixed message size
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_rps_service.h2
-rw-r--r--src/rps/rps_api.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/include/gnunet_rps_service.h b/src/include/gnunet_rps_service.h
index 39c9a1f385..c24139133b 100644
--- a/src/include/gnunet_rps_service.h
+++ b/src/include/gnunet_rps_service.h
@@ -82,7 +82,7 @@ GNUNET_RPS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg);
* @return handle to 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);
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;