diff options
Diffstat (limited to 'src/ats/test_ats_api_scheduling_add_address_inbound.c')
-rw-r--r-- | src/ats/test_ats_api_scheduling_add_address_inbound.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ats/test_ats_api_scheduling_add_address_inbound.c b/src/ats/test_ats_api_scheduling_add_address_inbound.c index fb4ddd2da..2c3ab9c02 100644 --- a/src/ats/test_ats_api_scheduling_add_address_inbound.c +++ b/src/ats/test_ats_api_scheduling_add_address_inbound.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 |
@@ -109,10 +109,10 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
109 | { | 109 | { |
110 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutting down\n"); | 110 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutting down\n"); |
111 | 111 | ||
112 | if (die_task != GNUNET_SCHEDULER_NO_TASK) | 112 | if (die_task != NULL) |
113 | { | 113 | { |
114 | GNUNET_SCHEDULER_cancel (die_task); | 114 | GNUNET_SCHEDULER_cancel (die_task); |
115 | die_task = GNUNET_SCHEDULER_NO_TASK; | 115 | die_task = NULL; |
116 | } | 116 | } |
117 | 117 | ||
118 | if (NULL != sched_ats) | 118 | if (NULL != sched_ats) |
@@ -136,7 +136,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
136 | static void | 136 | static void |
137 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 137 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
138 | { | 138 | { |
139 | die_task = GNUNET_SCHEDULER_NO_TASK; | 139 | die_task = NULL; |
140 | end ( NULL, NULL); | 140 | end ( NULL, NULL); |
141 | ret = GNUNET_SYSERR; | 141 | ret = GNUNET_SYSERR; |
142 | } | 142 | } |