diff options
Diffstat (limited to 'src/ats/test_ats_simplistic_pref_aging.c')
-rw-r--r-- | src/ats/test_ats_simplistic_pref_aging.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ats/test_ats_simplistic_pref_aging.c b/src/ats/test_ats_simplistic_pref_aging.c index c8485856c..855e22fbf 100644 --- a/src/ats/test_ats_simplistic_pref_aging.c +++ b/src/ats/test_ats_simplistic_pref_aging.c | |||
@@ -40,7 +40,7 @@ | |||
40 | 40 | ||
41 | #define DEBUG_ATS_INFO GNUNET_NO | 41 | #define DEBUG_ATS_INFO GNUNET_NO |
42 | 42 | ||
43 | static GNUNET_SCHEDULER_TaskIdentifier die_task; | 43 | static struct GNUNET_SCHEDULER_Task * die_task; |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * Scheduling handle | 46 | * Scheduling handle |
@@ -102,7 +102,7 @@ unsigned long long wan_quota_in; | |||
102 | static void | 102 | static void |
103 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 103 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
104 | { | 104 | { |
105 | die_task = GNUNET_SCHEDULER_NO_TASK; | 105 | die_task = NULL; |
106 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Error! Shutting down\n"); | 106 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Error! Shutting down\n"); |
107 | if (sched_ats != NULL) | 107 | if (sched_ats != NULL) |
108 | { | 108 | { |
@@ -123,10 +123,10 @@ static void | |||
123 | end () | 123 | end () |
124 | { | 124 | { |
125 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutting down\n"); | 125 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutting down\n"); |
126 | if (die_task != GNUNET_SCHEDULER_NO_TASK) | 126 | if (die_task != NULL) |
127 | { | 127 | { |
128 | GNUNET_SCHEDULER_cancel (die_task); | 128 | GNUNET_SCHEDULER_cancel (die_task); |
129 | die_task = GNUNET_SCHEDULER_NO_TASK; | 129 | die_task = NULL; |
130 | } | 130 | } |
131 | 131 | ||
132 | GNUNET_ATS_suggest_address_cancel (sched_ats, &p[0].id); | 132 | GNUNET_ATS_suggest_address_cancel (sched_ats, &p[0].id); |