aboutsummaryrefslogtreecommitdiff
path: root/src/nse
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/nse
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/nse')
-rw-r--r--src/nse/gnunet-service-nse.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index ce48ecfc4..d9687acd2 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -938,12 +938,13 @@ update_flood_times (void *cls, const GNUNET_HashCode * key, void *value)
938 * @param message message 938 * @param message message
939 * @param peer peer identity this message is from (ignored) 939 * @param peer peer identity this message is from (ignored)
940 * @param atsi performance data (ignored) 940 * @param atsi performance data (ignored)
941 * 941 * @param atsi_count number of records in 'atsi'
942 */ 942 */
943static int 943static int
944handle_p2p_size_estimate (void *cls, const struct GNUNET_PeerIdentity *peer, 944handle_p2p_size_estimate (void *cls, const struct GNUNET_PeerIdentity *peer,
945 const struct GNUNET_MessageHeader *message, 945 const struct GNUNET_MessageHeader *message,
946 const struct GNUNET_ATS_Information *atsi) 946 const struct GNUNET_ATS_Information *atsi,
947 unsigned int atsi_count)
947{ 948{
948 const struct GNUNET_NSE_FloodMessage *incoming_flood; 949 const struct GNUNET_NSE_FloodMessage *incoming_flood;
949 struct GNUNET_TIME_Absolute ts; 950 struct GNUNET_TIME_Absolute ts;
@@ -1094,10 +1095,12 @@ handle_p2p_size_estimate (void *cls, const struct GNUNET_PeerIdentity *peer,
1094 * @param cls closure 1095 * @param cls closure
1095 * @param peer peer identity this notification is about 1096 * @param peer peer identity this notification is about
1096 * @param atsi performance data 1097 * @param atsi performance data
1098 * @param atsi_count number of records in 'atsi'
1097 */ 1099 */
1098static void 1100static void
1099handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer, 1101handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
1100 const struct GNUNET_ATS_Information *atsi) 1102 const struct GNUNET_ATS_Information *atsi,
1103 unsigned int atsi_count)
1101{ 1104{
1102 struct NSEPeerEntry *peer_entry; 1105 struct NSEPeerEntry *peer_entry;
1103 1106