aboutsummaryrefslogtreecommitdiff
path: root/src/ats-tests/ats-testing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats-tests/ats-testing.c')
-rw-r--r--src/ats-tests/ats-testing.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ats-tests/ats-testing.c b/src/ats-tests/ats-testing.c
index c894f4445..16956489d 100644
--- a/src/ats-tests/ats-testing.c
+++ b/src/ats-tests/ats-testing.c
@@ -841,7 +841,6 @@ GNUNET_ATS_TEST_get_partner (int src, int dest)
841 * @param test_core connect to CORE service (GNUNET_YES) or transport (GNUNET_NO) 841 * @param test_core connect to CORE service (GNUNET_YES) or transport (GNUNET_NO)
842 * @param done_cb function to call when topology is setup 842 * @param done_cb function to call when topology is setup
843 * @param done_cb_cls cls for callback 843 * @param done_cb_cls cls for callback
844 * @param transport_recv_cb callback to call when data are received
845 * @param log_request_cb callback to call when logging is required 844 * @param log_request_cb callback to call when logging is required
846 */ 845 */
847void 846void
@@ -851,7 +850,6 @@ GNUNET_ATS_TEST_create_topology (char *name, char *cfg_file,
851 int test_core, 850 int test_core,
852 GNUNET_ATS_TEST_TopologySetupDoneCallback done_cb, 851 GNUNET_ATS_TEST_TopologySetupDoneCallback done_cb,
853 void *done_cb_cls, 852 void *done_cb_cls,
854 GNUNET_TRANSPORT_ReceiveCallback transport_recv_cb,
855 GNUNET_ATS_AddressInformationCallback log_request_cb) 853 GNUNET_ATS_AddressInformationCallback log_request_cb)
856{ 854{
857 static struct GNUNET_CORE_MessageHandler handlers[] = { 855 static struct GNUNET_CORE_MessageHandler handlers[] = {
@@ -866,11 +864,12 @@ GNUNET_ATS_TEST_create_topology (char *name, char *cfg_file,
866 top->done_cb = done_cb; 864 top->done_cb = done_cb;
867 top->done_cb_cls = done_cb_cls; 865 top->done_cb_cls = done_cb_cls;
868 top->test_core = test_core; 866 top->test_core = test_core;
869 top->transport_recv_cb = transport_recv_cb;
870 top->ats_perf_cb = log_request_cb; 867 top->ats_perf_cb = log_request_cb;
871 868
872 top->mps = GNUNET_malloc (num_masters * sizeof (struct BenchmarkPeer)); 869 top->mps = GNUNET_new_array (num_masters,
873 top->sps = GNUNET_malloc (num_slaves * sizeof (struct BenchmarkPeer)); 870 struct BenchmarkPeer);
871 top->sps = GNUNET_new_array (num_slaves,
872 struct BenchmarkPeer);
874 873
875 /* Start topology */ 874 /* Start topology */
876 uint64_t event_mask; 875 uint64_t event_mask;