From aa42cd5e2a145b6a66cdc62051b50274109cff42 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Feb 2015 13:05:58 +0000 Subject: [PATCH] fix testcase FTBFS --- src/ats/perf_ats_solver.c | 14 +------------- src/ats/test_ats_api_common.c | 5 ----- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/ats/perf_ats_solver.c b/src/ats/perf_ats_solver.c index ed3fc21ac..ef4c3ec5a 100644 --- a/src/ats/perf_ats_solver.c +++ b/src/ats/perf_ats_solver.c @@ -415,21 +415,13 @@ bandwidth_changed_cb (void *cls, } -const double * +static const double * get_preferences_cb (void *cls, const struct GNUNET_PeerIdentity *id) { return GAS_normalization_get_preferences_by_peer (NULL, id); } -const double * -get_property_cb (void *cls, const struct ATS_Address *address) -{ - return GAS_normalization_get_properties (NULL, - address); -} - - static void perf_address_initial_update (void *dead, struct GNUNET_CONTAINER_MultiPeerMap * addresses, @@ -1235,17 +1227,14 @@ run (void *cls, char * const *args, const char *cfgfile, if (0 == strcmp(solver, "proportional")) { - ph.ats_mode = MODE_PROPORTIONAL; ph.ats_string = "proportional"; } else if (0 == strcmp(solver, "mlp")) { - ph.ats_mode = MODE_MLP; ph.ats_string = "mlp"; } else if ((0 == strcmp(solver, "ril"))) { - ph.ats_mode = MODE_RIL; ph.ats_string = "ril"; } else @@ -1304,7 +1293,6 @@ run (void *cls, char * const *args, const char *cfgfile, ph.env.addresses = ph.addresses; ph.env.bandwidth_changed_cb = bandwidth_changed_cb; ph.env.get_preferences = &get_preferences_cb; - ph.env.get_property = &get_property_cb; ph.env.network_count = GNUNET_ATS_NetworkTypeCount; ph.env.info_cb = &solver_info_cb; diff --git a/src/ats/test_ats_api_common.c b/src/ats/test_ats_api_common.c index a7541efb0..5b3af3b9a 100644 --- a/src/ats/test_ats_api_common.c +++ b/src/ats/test_ats_api_common.c @@ -286,11 +286,6 @@ create_address (const struct GNUNET_PeerIdentity *peer, memcpy (&aa[1], plugin_addr, plugin_addr_len); memcpy (aa->plugin, plugin_name, strlen (plugin_name) + 1); aa->session_id = session_id; - aa->active = GNUNET_NO; - aa->used = GNUNET_NO; - aa->solver_information = NULL; - aa->assigned_bw_in = 0; - aa->assigned_bw_out = 0; return aa; } -- 2.25.1