From: Matthias Wachs Date: Wed, 25 Sep 2013 15:37:25 +0000 (+0000) Subject: do not use monitor callback X-Git-Tag: initial-import-from-subversion-38251~7102 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4ada3a00fca44d084ed56a7328333f253f179544;hp=f0e9d7311834e5a5e4b7da07aecf3cba014f05a1;p=oweals%2Fgnunet.git do not use monitor callback --- 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");