From: Matthias Wachs Date: Wed, 3 Apr 2013 07:59:52 +0000 (+0000) Subject: test X-Git-Tag: initial-import-from-subversion-38251~9392 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48884c3a62a60679a0c8a6c422b6c73a282f759f;p=oweals%2Fgnunet.git test --- diff --git a/src/ats/gnunet-service-ats_addresses_simplistic.c b/src/ats/gnunet-service-ats_addresses_simplistic.c index aadd20f2e..8ce028c12 100644 --- a/src/ats/gnunet-service-ats_addresses_simplistic.c +++ b/src/ats/gnunet-service-ats_addresses_simplistic.c @@ -772,7 +772,6 @@ addresse_decrement (struct GAS_SIMPLISTIC_Handle *s, * @param type the type to extract in HBO * @return the value in HBO or UINT32_MAX in HBO if value does not exist */ - static int get_performance_info (struct ATS_Address *address, uint32_t type) { diff --git a/src/ats/test_ats_api_scheduling_check_min_bw_alt.c b/src/ats/test_ats_api_scheduling_check_min_bw_alt.c index bf23ad2aa..c42feaa2f 100644 --- a/src/ats/test_ats_api_scheduling_check_min_bw_alt.c +++ b/src/ats/test_ats_api_scheduling_check_min_bw_alt.c @@ -97,8 +97,11 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { die_task = GNUNET_SCHEDULER_NO_TASK; - if (sched_ats != NULL) - GNUNET_ATS_scheduling_done (sched_ats); + if (NULL != sched_ats) + { + GNUNET_ATS_scheduling_done (sched_ats); + sched_ats = NULL; + } free_test_address (&test_addr[0]); free_test_address (&test_addr[1]); ret = GNUNET_SYSERR; @@ -114,8 +117,11 @@ end () GNUNET_SCHEDULER_cancel (die_task); die_task = GNUNET_SCHEDULER_NO_TASK; } - GNUNET_ATS_scheduling_done (sched_ats); - sched_ats = NULL; + if (NULL != sched_ats) + { + GNUNET_ATS_scheduling_done (sched_ats); + sched_ats = NULL; + } free_test_address (&test_addr[0]); free_test_address (&test_addr[1]); }