From 4ada3a00fca44d084ed56a7328333f253f179544 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 25 Sep 2013 15:37:25 +0000 Subject: [PATCH] do not use monitor callback --- src/ats/test_ats_api_performance_list_all_addresses.c | 2 +- src/ats/test_ats_api_performance_list_all_addresses_active.c | 4 +--- src/ats/test_ats_api_performance_list_peer_addresses.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ats/test_ats_api_performance_list_all_addresses.c b/src/ats/test_ats_api_performance_list_all_addresses.c index 679b34883..01c9e85ea 100644 --- a/src/ats/test_ats_api_performance_list_all_addresses.c +++ b/src/ats/test_ats_api_performance_list_all_addresses.c @@ -133,7 +133,7 @@ stat_cb(void *cls, const char *subsystem, { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "All addresses added, connecting to performance\n"); - if (NULL == (perf_ats = GNUNET_ATS_performance_init (cfg, &ats_perf_cb, NULL))) + if (NULL == (perf_ats = GNUNET_ATS_performance_init (cfg, NULL, NULL))) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to connect to performance API\n"); diff --git a/src/ats/test_ats_api_performance_list_all_addresses_active.c b/src/ats/test_ats_api_performance_list_all_addresses_active.c index 1fc2e48dc..6f5271da3 100644 --- a/src/ats/test_ats_api_performance_list_all_addresses_active.c +++ b/src/ats/test_ats_api_performance_list_all_addresses_active.c @@ -142,7 +142,7 @@ stat_cb(void *cls, const char *subsystem, { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "All addresses added, connecting to performance\n"); - if (NULL == (perf_ats = GNUNET_ATS_performance_init (cfg, &ats_perf_cb, NULL))) + if (NULL == (perf_ats = GNUNET_ATS_performance_init (cfg, NULL, NULL))) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to connect to performance API\n"); @@ -209,8 +209,6 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_STATISTICS_destroy (stats, GNUNET_NO); stats = NULL; } - - GNUNET_free_non_null(p0_addresses[0].addr); GNUNET_free_non_null(p0_addresses[1].addr); GNUNET_free_non_null(p1_addresses[0].addr); diff --git a/src/ats/test_ats_api_performance_list_peer_addresses.c b/src/ats/test_ats_api_performance_list_peer_addresses.c index 59a2fcf50..60f27eaee 100644 --- a/src/ats/test_ats_api_performance_list_peer_addresses.c +++ b/src/ats/test_ats_api_performance_list_peer_addresses.c @@ -143,7 +143,7 @@ stat_cb(void *cls, const char *subsystem, { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "All addresses added, connecting to performance\n"); - if (NULL == (perf_ats = GNUNET_ATS_performance_init (cfg, &ats_perf_cb, NULL))) + if (NULL == (perf_ats = GNUNET_ATS_performance_init (cfg, NULL, NULL))) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to connect to performance API\n"); -- 2.25.1