diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-22 21:59:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-22 21:59:27 +0000 |
commit | f44c0036572d5557d2496748a4190a61e40e61ff (patch) | |
tree | bceb908e8542883ed246f96b4c619c0c49a06782 /src/core/test_core_api.c | |
parent | 9d87d51965287d83ee332b8c50baff95bd62649a (diff) | |
download | gnunet-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/test_core_api.c')
-rw-r--r-- | src/core/test_core_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c index 56b7412c3..be3edf974 100644 --- a/src/core/test_core_api.c +++ b/src/core/test_core_api.c | |||
@@ -165,7 +165,7 @@ transmit_ready (void *cls, size_t size, void *buf) | |||
165 | 165 | ||
166 | static void | 166 | static void |
167 | connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, | 167 | connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, |
168 | const struct GNUNET_ATS_Information *atsi) | 168 | const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count) |
169 | { | 169 | { |
170 | struct PeerContext *pc = cls; | 170 | struct PeerContext *pc = cls; |
171 | 171 | ||
@@ -218,7 +218,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
218 | static int | 218 | static int |
219 | inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, | 219 | inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, |
220 | const struct GNUNET_MessageHeader *message, | 220 | const struct GNUNET_MessageHeader *message, |
221 | const struct GNUNET_ATS_Information *atsi) | 221 | const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count) |
222 | { | 222 | { |
223 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 223 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
224 | "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); | 224 | "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); |
@@ -229,7 +229,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, | |||
229 | static int | 229 | static int |
230 | outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, | 230 | outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, |
231 | const struct GNUNET_MessageHeader *message, | 231 | const struct GNUNET_MessageHeader *message, |
232 | const struct GNUNET_ATS_Information *atsi) | 232 | const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count) |
233 | { | 233 | { |
234 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 234 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
235 | "Core notifies about outbound data for `%4s'.\n", | 235 | "Core notifies about outbound data for `%4s'.\n", |
@@ -242,7 +242,7 @@ outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, | |||
242 | static int | 242 | static int |
243 | process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, | 243 | process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, |
244 | const struct GNUNET_MessageHeader *message, | 244 | const struct GNUNET_MessageHeader *message, |
245 | const struct GNUNET_ATS_Information *atsi) | 245 | const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count) |
246 | { | 246 | { |
247 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n", | 247 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n", |
248 | GNUNET_i2s (peer)); | 248 | GNUNET_i2s (peer)); |