aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/scalarproduct_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scalarproduct/scalarproduct_api.c')
-rw-r--r--src/scalarproduct/scalarproduct_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scalarproduct/scalarproduct_api.c b/src/scalarproduct/scalarproduct_api.c
index 8639b4e5a..09e06d5a0 100644
--- a/src/scalarproduct/scalarproduct_api.c
+++ b/src/scalarproduct/scalarproduct_api.c
@@ -279,7 +279,7 @@ GNUNET_SCALARPRODUCT_accept_computation (const struct GNUNET_CONFIGURATION_Handl
279 msg->element_count_total = htonl (element_count); 279 msg->element_count_total = htonl (element_count);
280 msg->element_count_contained = htonl (todo); 280 msg->element_count_contained = htonl (todo);
281 msg->session_key = *session_key; 281 msg->session_key = *session_key;
282 memcpy (&msg[1], 282 GNUNET_memcpy (&msg[1],
283 elements, 283 elements,
284 size); 284 size);
285 element_count_transfered = todo; 285 element_count_transfered = todo;
@@ -296,7 +296,7 @@ GNUNET_SCALARPRODUCT_accept_computation (const struct GNUNET_CONFIGURATION_Handl
296 size, 296 size,
297 GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MUTLIPART_BOB); 297 GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MUTLIPART_BOB);
298 mmsg->element_count_contained = htonl (todo); 298 mmsg->element_count_contained = htonl (todo);
299 memcpy (&mmsg[1], 299 GNUNET_memcpy (&mmsg[1],
300 &elements[element_count_transfered], 300 &elements[element_count_transfered],
301 size); 301 size);
302 element_count_transfered += todo; 302 element_count_transfered += todo;
@@ -439,7 +439,7 @@ GNUNET_SCALARPRODUCT_start_computation (const struct GNUNET_CONFIGURATION_Handle
439 msg->reserved = htonl (0); 439 msg->reserved = htonl (0);
440 msg->peer = *peer; 440 msg->peer = *peer;
441 msg->session_key = *session_key; 441 msg->session_key = *session_key;
442 memcpy (&msg[1], 442 GNUNET_memcpy (&msg[1],
443 elements, 443 elements,
444 size); 444 size);
445 GNUNET_MQ_send (h->mq, 445 GNUNET_MQ_send (h->mq,
@@ -456,7 +456,7 @@ GNUNET_SCALARPRODUCT_start_computation (const struct GNUNET_CONFIGURATION_Handle
456 size, 456 size,
457 GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MUTLIPART_ALICE); 457 GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MUTLIPART_ALICE);
458 mmsg->element_count_contained = htonl (todo); 458 mmsg->element_count_contained = htonl (todo);
459 memcpy (&mmsg[1], 459 GNUNET_memcpy (&mmsg[1],
460 &elements[element_count_transfered], 460 &elements[element_count_transfered],
461 size); 461 size);
462 element_count_transfered += todo; 462 element_count_transfered += todo;