diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-21 14:08:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-21 14:08:37 +0000 |
commit | 569a28bc648b2d073361fea5dcea2fb3daf5bd57 (patch) | |
tree | fcd7501aab6293d31bc4e82b0f59f24834325ee1 /src/transport/test_transport_api_manipulation_send_tcp.c | |
parent | 1c01ca33a8a4120bd47ce22d1856cb2f81355628 (diff) | |
download | gnunet-569a28bc648b2d073361fea5dcea2fb3daf5bd57.tar.gz gnunet-569a28bc648b2d073361fea5dcea2fb3daf5bd57.zip |
api fix
Diffstat (limited to 'src/transport/test_transport_api_manipulation_send_tcp.c')
-rw-r--r-- | src/transport/test_transport_api_manipulation_send_tcp.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/transport/test_transport_api_manipulation_send_tcp.c b/src/transport/test_transport_api_manipulation_send_tcp.c index 3ec7f7bf3..5361e0aba 100644 --- a/src/transport/test_transport_api_manipulation_send_tcp.c +++ b/src/transport/test_transport_api_manipulation_send_tcp.c | |||
@@ -162,12 +162,10 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | |||
162 | 162 | ||
163 | static void | 163 | static void |
164 | notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | 164 | notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, |
165 | const struct GNUNET_MessageHeader *message, | 165 | const struct GNUNET_MessageHeader *message) |
166 | const struct GNUNET_ATS_Information *ats, uint32_t ats_count) | ||
167 | { | 166 | { |
168 | struct PeerContext *p = cls; | 167 | struct PeerContext *p = cls; |
169 | struct PeerContext *t = NULL; | 168 | struct PeerContext *t = NULL; |
170 | int c; | ||
171 | 169 | ||
172 | if (0 == memcmp (peer, &p1->id, sizeof (struct GNUNET_PeerIdentity))) | 170 | if (0 == memcmp (peer, &p1->id, sizeof (struct GNUNET_PeerIdentity))) |
173 | t = p1; | 171 | t = p1; |
@@ -223,19 +221,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
223 | "Delayed message was not delayed correctly: took only %llu\n", | 221 | "Delayed message was not delayed correctly: took only %llu\n", |
224 | (long long unsigned int) dur_delayed.rel_value); | 222 | (long long unsigned int) dur_delayed.rel_value); |
225 | } | 223 | } |
226 | for (c = 0; c < ats_count; c++) | 224 | |
227 | { | ||
228 | if (ntohl (ats[c].type) == GNUNET_ATS_QUALITY_NET_DISTANCE) | ||
229 | { | ||
230 | if (ntohl (ats[c].value) == 10) | ||
231 | ok += 0; | ||
232 | else | ||
233 | { | ||
234 | GNUNET_break (0); | ||
235 | ok += 1; | ||
236 | } | ||
237 | } | ||
238 | } | ||
239 | /* shutdown */ | 225 | /* shutdown */ |
240 | end (); | 226 | end (); |
241 | } | 227 | } |
@@ -322,8 +308,7 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
322 | 308 | ||
323 | 309 | ||
324 | static void | 310 | static void |
325 | notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | 311 | notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer) |
326 | const struct GNUNET_ATS_Information *ats, uint32_t ats_count) | ||
327 | { | 312 | { |
328 | static int c; | 313 | static int c; |
329 | 314 | ||