diff options
Diffstat (limited to 'src/ats/test_ats_api_scheduling_destroy_address.c')
-rw-r--r-- | src/ats/test_ats_api_scheduling_destroy_address.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/ats/test_ats_api_scheduling_destroy_address.c b/src/ats/test_ats_api_scheduling_destroy_address.c index 323128ac2..5807ac456 100644 --- a/src/ats/test_ats_api_scheduling_destroy_address.c +++ b/src/ats/test_ats_api_scheduling_destroy_address.c | |||
@@ -46,6 +46,11 @@ static struct GNUNET_STATISTICS_Handle *stats; | |||
46 | static struct GNUNET_ATS_SchedulingHandle *sched_ats; | 46 | static struct GNUNET_ATS_SchedulingHandle *sched_ats; |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * Our address record. | ||
50 | */ | ||
51 | static struct GNUNET_ATS_AddressRecord *ar; | ||
52 | |||
53 | /** | ||
49 | * Return value | 54 | * Return value |
50 | */ | 55 | */ |
51 | static int ret; | 56 | static int ret; |
@@ -139,9 +144,8 @@ stat_cb (void *cls, const char *subsystem, | |||
139 | { | 144 | { |
140 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 145 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
141 | "Statistics observed address added, now destroying address\n"); | 146 | "Statistics observed address added, now destroying address\n"); |
142 | GNUNET_ATS_address_destroyed (sched_ats, | 147 | GNUNET_ATS_address_destroy (ar); |
143 | &test_hello_address, | 148 | ar = NULL; |
144 | test_session); | ||
145 | } | 149 | } |
146 | return GNUNET_OK; | 150 | return GNUNET_OK; |
147 | } | 151 | } |
@@ -211,11 +215,11 @@ got_initial_value (void *cls, | |||
211 | test_hello_address.address_length = test_addr.addr_len; | 215 | test_hello_address.address_length = test_addr.addr_len; |
212 | 216 | ||
213 | /* Adding address */ | 217 | /* Adding address */ |
214 | GNUNET_ATS_address_add (sched_ats, | 218 | ar = GNUNET_ATS_address_add (sched_ats, |
215 | &test_hello_address, | 219 | &test_hello_address, |
216 | test_session, | 220 | test_session, |
217 | test_ats_info, | 221 | test_ats_info, |
218 | test_ats_count); | 222 | test_ats_count); |
219 | } | 223 | } |
220 | 224 | ||
221 | 225 | ||