aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore/psycstore_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/psycstore/psycstore_api.c')
-rw-r--r--src/psycstore/psycstore_api.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/psycstore/psycstore_api.c b/src/psycstore/psycstore_api.c
index 234218fba..379483e80 100644
--- a/src/psycstore/psycstore_api.c
+++ b/src/psycstore/psycstore_api.c
@@ -476,7 +476,7 @@ send_next_message (void *cls, size_t size, void *buf)
476 LOG (GNUNET_ERROR_TYPE_DEBUG, 476 LOG (GNUNET_ERROR_TYPE_DEBUG,
477 "Sending message of type %d to PSYCstore service. ID: %" PRIu64 "\n", 477 "Sending message of type %d to PSYCstore service. ID: %" PRIu64 "\n",
478 ntohs (op->msg->type), op->op_id); 478 ntohs (op->msg->type), op->op_id);
479 memcpy (buf, op->msg, ret); 479 GNUNET_memcpy (buf, op->msg, ret);
480 480
481 GNUNET_CONTAINER_DLL_remove (h->transmit_head, h->transmit_tail, op); 481 GNUNET_CONTAINER_DLL_remove (h->transmit_head, h->transmit_tail, op);
482 482
@@ -800,7 +800,7 @@ GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h,
800 req->header.size = htons (sizeof (*req) + size); 800 req->header.size = htons (sizeof (*req) + size);
801 req->channel_key = *channel_key; 801 req->channel_key = *channel_key;
802 req->psycstore_flags = htonl (psycstore_flags); 802 req->psycstore_flags = htonl (psycstore_flags);
803 memcpy (&req[1], msg, size); 803 GNUNET_memcpy (&req[1], msg, size);
804 804
805 op->op_id = get_next_op_id (h); 805 op->op_id = get_next_op_id (h);
806 req->op_id = GNUNET_htonll (op->op_id); 806 req->op_id = GNUNET_htonll (op->op_id);
@@ -1016,7 +1016,7 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h,
1016 req->slave_key = *slave_key; 1016 req->slave_key = *slave_key;
1017 req->do_membership_test = GNUNET_YES; 1017 req->do_membership_test = GNUNET_YES;
1018 } 1018 }
1019 memcpy (&req[1], method_prefix, method_size); 1019 GNUNET_memcpy (&req[1], method_prefix, method_size);
1020 ((char *) &req[1])[method_size - 1] = '\0'; 1020 ((char *) &req[1])[method_size - 1] = '\0';
1021 1021
1022 op->op_id = get_next_op_id (h); 1022 op->op_id = get_next_op_id (h);
@@ -1094,7 +1094,7 @@ GNUNET_PSYCSTORE_message_get_latest (struct GNUNET_PSYCSTORE_Handle *h,
1094 1094
1095 op->op_id = get_next_op_id (h); 1095 op->op_id = get_next_op_id (h);
1096 req->op_id = GNUNET_htonll (op->op_id); 1096 req->op_id = GNUNET_htonll (op->op_id);
1097 memcpy (&req[1], method_prefix, method_size); 1097 GNUNET_memcpy (&req[1], method_prefix, method_size);
1098 1098
1099 GNUNET_CONTAINER_DLL_insert_tail (h->transmit_head, h->transmit_tail, op); 1099 GNUNET_CONTAINER_DLL_insert_tail (h->transmit_head, h->transmit_tail, op);
1100 transmit_next (h); 1100 transmit_next (h);
@@ -1334,8 +1334,8 @@ GNUNET_PSYCSTORE_state_sync (struct GNUNET_PSYCSTORE_Handle *h,
1334 ? STATE_OP_LAST 1334 ? STATE_OP_LAST
1335 : 0; 1335 : 0;
1336 1336
1337 memcpy (&req[1], modifiers[i].name, name_size); 1337 GNUNET_memcpy (&req[1], modifiers[i].name, name_size);
1338 memcpy ((char *) &req[1] + name_size, modifiers[i].value, modifiers[i].value_size); 1338 GNUNET_memcpy ((char *) &req[1] + name_size, modifiers[i].value, modifiers[i].value_size);
1339 1339
1340 op->op_id = get_next_op_id (h); 1340 op->op_id = get_next_op_id (h);
1341 req->op_id = GNUNET_htonll (op->op_id); 1341 req->op_id = GNUNET_htonll (op->op_id);
@@ -1482,7 +1482,7 @@ GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h,
1482 req->header.type = htons (GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET); 1482 req->header.type = htons (GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET);
1483 req->header.size = htons (sizeof (*req) + name_size); 1483 req->header.size = htons (sizeof (*req) + name_size);
1484 req->channel_key = *channel_key; 1484 req->channel_key = *channel_key;
1485 memcpy (&req[1], name, name_size); 1485 GNUNET_memcpy (&req[1], name, name_size);
1486 1486
1487 op->op_id = get_next_op_id (h); 1487 op->op_id = get_next_op_id (h);
1488 req->op_id = GNUNET_htonll (op->op_id); 1488 req->op_id = GNUNET_htonll (op->op_id);
@@ -1535,7 +1535,7 @@ GNUNET_PSYCSTORE_state_get_prefix (struct GNUNET_PSYCSTORE_Handle *h,
1535 req->header.type = htons (GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET_PREFIX); 1535 req->header.type = htons (GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET_PREFIX);
1536 req->header.size = htons (sizeof (*req) + name_size); 1536 req->header.size = htons (sizeof (*req) + name_size);
1537 req->channel_key = *channel_key; 1537 req->channel_key = *channel_key;
1538 memcpy (&req[1], name_prefix, name_size); 1538 GNUNET_memcpy (&req[1], name_prefix, name_size);
1539 1539
1540 op->op_id = get_next_op_id (h); 1540 op->op_id = get_next_op_id (h);
1541 req->op_id = GNUNET_htonll (op->op_id); 1541 req->op_id = GNUNET_htonll (op->op_id);