diff options
Diffstat (limited to 'src/ats/test_ats_api_scheduling_add_session.c')
-rw-r--r-- | src/ats/test_ats_api_scheduling_add_session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ats/test_ats_api_scheduling_add_session.c b/src/ats/test_ats_api_scheduling_add_session.c index 9d7fd99d1..243ecd22e 100644 --- a/src/ats/test_ats_api_scheduling_add_session.c +++ b/src/ats/test_ats_api_scheduling_add_session.c | |||
@@ -32,7 +32,7 @@ | |||
32 | /** | 32 | /** |
33 | * Timeout task | 33 | * Timeout task |
34 | */ | 34 | */ |
35 | static GNUNET_SCHEDULER_TaskIdentifier die_task; | 35 | static struct GNUNET_SCHEDULER_Task * die_task; |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Statistics handle | 38 | * Statistics handle |
@@ -116,10 +116,10 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
116 | { | 116 | { |
117 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutting down\n"); | 117 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutting down\n"); |
118 | 118 | ||
119 | if (die_task != GNUNET_SCHEDULER_NO_TASK) | 119 | if (die_task != NULL) |
120 | { | 120 | { |
121 | GNUNET_SCHEDULER_cancel (die_task); | 121 | GNUNET_SCHEDULER_cancel (die_task); |
122 | die_task = GNUNET_SCHEDULER_NO_TASK; | 122 | die_task = NULL; |
123 | } | 123 | } |
124 | 124 | ||
125 | if (NULL != sched_ats) | 125 | if (NULL != sched_ats) |
@@ -143,7 +143,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
143 | static void | 143 | static void |
144 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 144 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
145 | { | 145 | { |
146 | die_task = GNUNET_SCHEDULER_NO_TASK; | 146 | die_task = NULL; |
147 | end ( NULL, NULL); | 147 | end ( NULL, NULL); |
148 | ret = GNUNET_SYSERR; | 148 | ret = GNUNET_SYSERR; |
149 | } | 149 | } |