diff options
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 620705ee2..5853d447d 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -526,7 +526,7 @@ transmit_callback (void *cls, size_t size, void *buf) | |||
526 | return 0; | 526 | return 0; |
527 | } | 527 | } |
528 | GNUNET_assert (size >= msize); | 528 | GNUNET_assert (size >= msize); |
529 | memcpy (buf, tcc->msg, msize); | 529 | GNUNET_memcpy (buf, tcc->msg, msize); |
530 | GNUNET_SERVER_receive_done (tcc->client, GNUNET_OK); | 530 | GNUNET_SERVER_receive_done (tcc->client, GNUNET_OK); |
531 | GNUNET_SERVER_client_drop (tcc->client); | 531 | GNUNET_SERVER_client_drop (tcc->client); |
532 | GNUNET_free (tcc->msg); | 532 | GNUNET_free (tcc->msg); |
@@ -598,7 +598,7 @@ transmit_status (struct GNUNET_SERVER_Client *client, int code, const char *msg) | |||
598 | sm->status = htonl (code); | 598 | sm->status = htonl (code); |
599 | sm->min_expiration = GNUNET_TIME_absolute_hton (min_expiration); | 599 | sm->min_expiration = GNUNET_TIME_absolute_hton (min_expiration); |
600 | if (slen > 0) | 600 | if (slen > 0) |
601 | memcpy (&sm[1], msg, slen); | 601 | GNUNET_memcpy (&sm[1], msg, slen); |
602 | transmit (client, &sm->header); | 602 | transmit (client, &sm->header); |
603 | } | 603 | } |
604 | 604 | ||
@@ -662,7 +662,7 @@ transmit_item (void *cls, | |||
662 | dm->expiration = GNUNET_TIME_absolute_hton (expiration); | 662 | dm->expiration = GNUNET_TIME_absolute_hton (expiration); |
663 | dm->uid = GNUNET_htonll (uid); | 663 | dm->uid = GNUNET_htonll (uid); |
664 | dm->key = *key; | 664 | dm->key = *key; |
665 | memcpy (&dm[1], data, size); | 665 | GNUNET_memcpy (&dm[1], data, size); |
666 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 666 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
667 | "Transmitting `%s' message for `%s' of type %u with expiration %s (in: %s)\n", | 667 | "Transmitting `%s' message for `%s' of type %u with expiration %s (in: %s)\n", |
668 | "DATA", GNUNET_h2s (key), type, | 668 | "DATA", GNUNET_h2s (key), type, |
@@ -1067,7 +1067,7 @@ handle_put (void *cls, | |||
1067 | sizeof (struct DataMessage)); | 1067 | sizeof (struct DataMessage)); |
1068 | pc->client = client; | 1068 | pc->client = client; |
1069 | GNUNET_SERVER_client_keep (client); | 1069 | GNUNET_SERVER_client_keep (client); |
1070 | memcpy (&pc[1], dm, size + sizeof (struct DataMessage)); | 1070 | GNUNET_memcpy (&pc[1], dm, size + sizeof (struct DataMessage)); |
1071 | if (GNUNET_YES == GNUNET_CONTAINER_bloomfilter_test (filter, &dm->key)) | 1071 | if (GNUNET_YES == GNUNET_CONTAINER_bloomfilter_test (filter, &dm->key)) |
1072 | { | 1072 | { |
1073 | GNUNET_CRYPTO_hash (&dm[1], size, &vhash); | 1073 | GNUNET_CRYPTO_hash (&dm[1], size, &vhash); |