diff options
Diffstat (limited to 'src/testbed/gnunet-service-testbed.c')
-rw-r--r-- | src/testbed/gnunet-service-testbed.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testbed/gnunet-service-testbed.c b/src/testbed/gnunet-service-testbed.c index 8a286742c..9e181f85a 100644 --- a/src/testbed/gnunet-service-testbed.c +++ b/src/testbed/gnunet-service-testbed.c | |||
@@ -151,7 +151,7 @@ transmit_ready_notify (void *cls, size_t size, void *buf) | |||
151 | return 0; | 151 | return 0; |
152 | GNUNET_assert (ntohs (mq_entry->msg->size) <= size); | 152 | GNUNET_assert (ntohs (mq_entry->msg->size) <= size); |
153 | size = ntohs (mq_entry->msg->size); | 153 | size = ntohs (mq_entry->msg->size); |
154 | memcpy (buf, mq_entry->msg, size); | 154 | GNUNET_memcpy (buf, mq_entry->msg, size); |
155 | GNUNET_free (mq_entry->msg); | 155 | GNUNET_free (mq_entry->msg); |
156 | GNUNET_SERVER_client_drop (mq_entry->client); | 156 | GNUNET_SERVER_client_drop (mq_entry->client); |
157 | GNUNET_CONTAINER_DLL_remove (mq_head, mq_tail, mq_entry); | 157 | GNUNET_CONTAINER_DLL_remove (mq_head, mq_tail, mq_entry); |
@@ -249,7 +249,7 @@ GST_send_operation_fail_msg (struct GNUNET_SERVER_Client *client, | |||
249 | msg->event_type = htonl (GNUNET_TESTBED_ET_OPERATION_FINISHED); | 249 | msg->event_type = htonl (GNUNET_TESTBED_ET_OPERATION_FINISHED); |
250 | msg->operation_id = GNUNET_htonll (operation_id); | 250 | msg->operation_id = GNUNET_htonll (operation_id); |
251 | if (0 != emsg_len) | 251 | if (0 != emsg_len) |
252 | memcpy (&msg[1], emsg, emsg_len); | 252 | GNUNET_memcpy (&msg[1], emsg, emsg_len); |
253 | GST_queue_message (client, &msg->header); | 253 | GST_queue_message (client, &msg->header); |
254 | } | 254 | } |
255 | 255 | ||
@@ -435,7 +435,7 @@ parse_shared_services (char *ss_str, struct GNUNET_CONFIGURATION_Handle *cfg) | |||
435 | #define GROW_SS \ | 435 | #define GROW_SS \ |
436 | do { \ | 436 | do { \ |
437 | GNUNET_array_grow (slist, n, n+1); \ | 437 | GNUNET_array_grow (slist, n, n+1); \ |
438 | (void) memcpy (&slist[n - 1], &ss, \ | 438 | GNUNET_memcpy (&slist[n - 1], &ss, \ |
439 | sizeof (struct GNUNET_TESTING_SharedService)); \ | 439 | sizeof (struct GNUNET_TESTING_SharedService)); \ |
440 | } while (0) | 440 | } while (0) |
441 | 441 | ||
@@ -649,7 +649,7 @@ handle_add_host (void *cls, | |||
649 | GNUNET_TESTBED_host_destroy (host); | 649 | GNUNET_TESTBED_host_destroy (host); |
650 | reply_size += strlen (emsg) + 1; | 650 | reply_size += strlen (emsg) + 1; |
651 | reply = GNUNET_malloc (reply_size); | 651 | reply = GNUNET_malloc (reply_size); |
652 | memcpy (&reply[1], emsg, strlen (emsg) + 1); | 652 | GNUNET_memcpy (&reply[1], emsg, strlen (emsg) + 1); |
653 | } | 653 | } |
654 | else | 654 | else |
655 | { | 655 | { |