diff options
Diffstat (limited to 'src/psycstore/test_psycstore.c')
-rw-r--r-- | src/psycstore/test_psycstore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/psycstore/test_psycstore.c b/src/psycstore/test_psycstore.c index 1b589f2b1..f9a7ce9ca 100644 --- a/src/psycstore/test_psycstore.c +++ b/src/psycstore/test_psycstore.c | |||
@@ -469,7 +469,7 @@ fragment_store () | |||
469 | msg->group_generation = GNUNET_htonll (INT64_MAX - 3); | 469 | msg->group_generation = GNUNET_htonll (INT64_MAX - 3); |
470 | msg->flags = htonl (GNUNET_MULTICAST_MESSAGE_LAST_FRAGMENT); | 470 | msg->flags = htonl (GNUNET_MULTICAST_MESSAGE_LAST_FRAGMENT); |
471 | 471 | ||
472 | memcpy (&msg[1], &channel_pub_key, sizeof (channel_pub_key)); | 472 | GNUNET_memcpy (&msg[1], &channel_pub_key, sizeof (channel_pub_key)); |
473 | 473 | ||
474 | msg->purpose.size = htonl (ntohs (msg->header.size) | 474 | msg->purpose.size = htonl (ntohs (msg->header.size) |
475 | - sizeof (msg->header) | 475 | - sizeof (msg->header) |
@@ -484,7 +484,7 @@ fragment_store () | |||
484 | 484 | ||
485 | fcls.flags[1] = GNUNET_PSYCSTORE_MESSAGE_STATE_APPLIED; | 485 | fcls.flags[1] = GNUNET_PSYCSTORE_MESSAGE_STATE_APPLIED; |
486 | fcls.msg[1] = msg = GNUNET_malloc (sizeof (*msg) + sizeof (channel_pub_key)); | 486 | fcls.msg[1] = msg = GNUNET_malloc (sizeof (*msg) + sizeof (channel_pub_key)); |
487 | memcpy (msg, fcls.msg[0], sizeof (*msg) + sizeof (channel_pub_key)); | 487 | GNUNET_memcpy (msg, fcls.msg[0], sizeof (*msg) + sizeof (channel_pub_key)); |
488 | msg->fragment_id = GNUNET_htonll (INT64_MAX - 4); | 488 | msg->fragment_id = GNUNET_htonll (INT64_MAX - 4); |
489 | msg->fragment_offset = GNUNET_htonll (1024); | 489 | msg->fragment_offset = GNUNET_htonll (1024); |
490 | 490 | ||
@@ -493,7 +493,7 @@ fragment_store () | |||
493 | 493 | ||
494 | fcls.flags[2] = GNUNET_PSYCSTORE_MESSAGE_STATE_HASH; | 494 | fcls.flags[2] = GNUNET_PSYCSTORE_MESSAGE_STATE_HASH; |
495 | fcls.msg[2] = msg = GNUNET_malloc (sizeof (*msg) + sizeof (channel_pub_key)); | 495 | fcls.msg[2] = msg = GNUNET_malloc (sizeof (*msg) + sizeof (channel_pub_key)); |
496 | memcpy (msg, fcls.msg[1], sizeof (*msg) + sizeof (channel_pub_key)); | 496 | GNUNET_memcpy (msg, fcls.msg[1], sizeof (*msg) + sizeof (channel_pub_key)); |
497 | msg->fragment_id = GNUNET_htonll (INT64_MAX); | 497 | msg->fragment_id = GNUNET_htonll (INT64_MAX); |
498 | msg->fragment_offset = GNUNET_htonll (16384); | 498 | msg->fragment_offset = GNUNET_htonll (16384); |
499 | 499 | ||