aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_manipulation_recv_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_transport_api_manipulation_recv_tcp.c')
-rw-r--r--src/transport/test_transport_api_manipulation_recv_tcp.c20
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
163static void 163static void
164notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, 164notify_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
325static void 310static void
326notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, 311notify_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