- test_session[0] = &test_addr[0];
- create_test_address (&test_addr[0], "test0", test_session[0], "test0", strlen ("test0") + 1);
- test_hello_address[0].peer = p[0].id;
- test_hello_address[0].transport_name = test_addr[0].plugin;
- test_hello_address[0].address = test_addr[0].addr;
- test_hello_address[0].address_length = test_addr[0].addr_len;
- GNUNET_ATS_address_add (sched_ats, &test_hello_address[0], test_session[0], test_ats_info, test_ats_count);
-
- GNUNET_ATS_suggest_address (sched_ats, &p[0].id);
+ test_session = &test_addr;
+ create_test_address (&test_addr, "test0", test_session, "test0", strlen ("test0") + 1);
+ test_hello_address.peer = p.id;
+ test_hello_address.transport_name = test_addr.plugin;
+ test_hello_address.address = test_addr.addr;
+ test_hello_address.address_length = test_addr.addr_len;
+ GNUNET_ATS_address_add (sched_ats, &test_hello_address, test_session, test_ats_info, test_ats_count);
+
+ GNUNET_ATS_suggest_address (sched_ats, &p.id);