aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_clients.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-22 21:59:27 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-22 21:59:27 +0000
commitf44c0036572d5557d2496748a4190a61e40e61ff (patch)
treebceb908e8542883ed246f96b4c619c0c49a06782 /src/core/gnunet-service-core_clients.c
parent9d87d51965287d83ee332b8c50baff95bd62649a (diff)
downloadgnunet-f44c0036572d5557d2496748a4190a61e40e61ff.tar.gz
gnunet-f44c0036572d5557d2496748a4190a61e40e61ff.zip
replacing 0-terminated atsi-array with array+length in core API (and the core-connect IPC)
Diffstat (limited to 'src/core/gnunet-service-core_clients.c')
-rw-r--r--src/core/gnunet-service-core_clients.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c
index 146b251be..47bbd98db 100644
--- a/src/core/gnunet-service-core_clients.c
+++ b/src/core/gnunet-service-core_clients.c
@@ -658,11 +658,9 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
658 cnm->header.size = htons (size); 658 cnm->header.size = htons (size);
659 cnm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT); 659 cnm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT);
660 cnm->ats_count = htonl (atsi_count); 660 cnm->ats_count = htonl (atsi_count);
661 a = &cnm->ats; 661 a = (struct GNUNET_ATS_Information* ) &cnm[1];
662 memcpy (a, atsi, 662 memcpy (a, atsi,
663 sizeof (struct GNUNET_ATS_Information) * atsi_count); 663 sizeof (struct GNUNET_ATS_Information) * atsi_count);
664 a[atsi_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
665 a[atsi_count].value = htonl (0);
666#if DEBUG_CORE 664#if DEBUG_CORE
667 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 665 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
668 "Sending `%s' message to client.\n", 666 "Sending `%s' message to client.\n",