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_recv_tcp.c | |
parent | 1c01ca33a8a4120bd47ce22d1856cb2f81355628 (diff) | |
download | gnunet-569a28bc648b2d073361fea5dcea2fb3daf5bd57.tar.gz gnunet-569a28bc648b2d073361fea5dcea2fb3daf5bd57.zip |
api fix
Diffstat (limited to 'src/transport/test_transport_api_manipulation_recv_tcp.c')
-rw-r--r-- | src/transport/test_transport_api_manipulation_recv_tcp.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/transport/test_transport_api_manipulation_recv_tcp.c b/src/transport/test_transport_api_manipulation_recv_tcp.c index efd4a481f..83d1431dc 100644 --- a/src/transport/test_transport_api_manipulation_recv_tcp.c +++ b/src/transport/test_transport_api_manipulation_recv_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; |
@@ -231,19 +229,6 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
231 | "Delayed message was not delayed correctly: took only %llu\n", | 229 | "Delayed message was not delayed correctly: took only %llu\n", |
232 | (long long unsigned int) dur_delayed.rel_value); | 230 | (long long unsigned int) dur_delayed.rel_value); |
233 | } | 231 | } |
234 | for (c = 0; c < ats_count; c++) | ||
235 | { | ||
236 | if (ntohl (ats[c].type) == GNUNET_ATS_QUALITY_NET_DISTANCE) | ||
237 | { | ||
238 | if (ntohl (ats[c].value) == 10) | ||
239 | ok += 0; | ||
240 | else | ||
241 | { | ||
242 | GNUNET_break (0); | ||
243 | ok += 1; | ||
244 | } | ||
245 | } | ||
246 | } | ||
247 | /* shutdown */ | 232 | /* shutdown */ |
248 | end (); | 233 | end (); |
249 | } | 234 | } |
@@ -323,8 +308,7 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
323 | 308 | ||
324 | 309 | ||
325 | static void | 310 | static void |
326 | notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | 311 | notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer) |
327 | const struct GNUNET_ATS_Information *ats, uint32_t ats_count) | ||
328 | { | 312 | { |
329 | static int c; | 313 | static int c; |
330 | 314 | ||