diff options
Diffstat (limited to 'src/ats/test_ats_api_performance_monitor_initial_callback.c')
-rw-r--r-- | src/ats/test_ats_api_performance_monitor_initial_callback.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ats/test_ats_api_performance_monitor_initial_callback.c b/src/ats/test_ats_api_performance_monitor_initial_callback.c index 377686673..42d2951f7 100644 --- a/src/ats/test_ats_api_performance_monitor_initial_callback.c +++ b/src/ats/test_ats_api_performance_monitor_initial_callback.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) | 31 | #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) |
32 | #define WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) | 32 | #define WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) |
33 | 33 | ||
34 | static GNUNET_SCHEDULER_TaskIdentifier die_task; | 34 | static struct GNUNET_SCHEDULER_Task * die_task; |
35 | 35 | ||
36 | /** | 36 | /** |
37 | * Statistics handle | 37 | * Statistics handle |
@@ -174,7 +174,7 @@ address_suggest_cb (void *cls, | |||
174 | static void | 174 | static void |
175 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 175 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
176 | { | 176 | { |
177 | die_task = GNUNET_SCHEDULER_NO_TASK; | 177 | die_task = NULL; |
178 | end ( NULL, NULL); | 178 | end ( NULL, NULL); |
179 | ret = GNUNET_SYSERR; | 179 | ret = GNUNET_SYSERR; |
180 | } | 180 | } |
@@ -183,10 +183,10 @@ static void | |||
183 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 183 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
184 | { | 184 | { |
185 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Shutting down\n"); | 185 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Shutting down\n"); |
186 | if (die_task != GNUNET_SCHEDULER_NO_TASK ) | 186 | if (die_task != NULL ) |
187 | { | 187 | { |
188 | GNUNET_SCHEDULER_cancel (die_task); | 188 | GNUNET_SCHEDULER_cancel (die_task); |
189 | die_task = GNUNET_SCHEDULER_NO_TASK; | 189 | die_task = NULL; |
190 | } | 190 | } |
191 | 191 | ||
192 | if (NULL != sched_ats) | 192 | if (NULL != sched_ats) |