diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-24 22:04:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-24 22:04:41 +0000 |
commit | 70e6847205a9f9b9b660be2a173d5bc309eaa58d (patch) | |
tree | e2649865fbff3e7cbb2e85e381a6268b9aa01e0d /src/transport/test_plugin_transport.c | |
parent | 0722614037876469e205546db5ab5fc892b5cf8c (diff) | |
download | gnunet-70e6847205a9f9b9b660be2a173d5bc309eaa58d.tar.gz gnunet-70e6847205a9f9b9b660be2a173d5bc309eaa58d.zip |
quota management and better name for NO_TASK'
'
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r-- | src/transport/test_plugin_transport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 9cc9f2853..ef6c8a76a 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -157,10 +157,10 @@ validation_notification (void *cls, | |||
157 | /* Sailor: 'test_validation' should get here | 157 | /* Sailor: 'test_validation' should get here |
158 | if the validation worked; so we cancel the | 158 | if the validation worked; so we cancel the |
159 | "delayed" task that will cause failure */ | 159 | "delayed" task that will cause failure */ |
160 | if (validation_timeout_task != GNUNET_SCHEDULER_NO_PREREQUISITE_TASK) | 160 | if (validation_timeout_task != GNUNET_SCHEDULER_NO_TASK) |
161 | { | 161 | { |
162 | GNUNET_SCHEDULER_cancel (sched, validation_timeout_task); | 162 | GNUNET_SCHEDULER_cancel (sched, validation_timeout_task); |
163 | validation_timeout_task = GNUNET_SCHEDULER_NO_PREREQUISITE_TASK; | 163 | validation_timeout_task = GNUNET_SCHEDULER_NO_TASK; |
164 | } | 164 | } |
165 | 165 | ||
166 | GNUNET_assert (challenge == 42); | 166 | GNUNET_assert (challenge == 42); |
@@ -176,7 +176,7 @@ static void | |||
176 | validation_failed (void *cls, | 176 | validation_failed (void *cls, |
177 | const struct GNUNET_SCHEDULER_TaskContext *tc) | 177 | const struct GNUNET_SCHEDULER_TaskContext *tc) |
178 | { | 178 | { |
179 | validation_timeout_task = GNUNET_SCHEDULER_NO_PREREQUISITE_TASK; | 179 | validation_timeout_task = GNUNET_SCHEDULER_NO_TASK; |
180 | GNUNET_break (0); /* output error */ | 180 | GNUNET_break (0); /* output error */ |
181 | /* the "validation_notification" was not called | 181 | /* the "validation_notification" was not called |
182 | in a timely fashion; we should set an error | 182 | in a timely fashion; we should set an error |
@@ -221,7 +221,7 @@ test_validation () | |||
221 | GNUNET_SCHEDULER_add_delayed (sched, | 221 | GNUNET_SCHEDULER_add_delayed (sched, |
222 | GNUNET_NO, | 222 | GNUNET_NO, |
223 | GNUNET_SCHEDULER_PRIORITY_KEEP, | 223 | GNUNET_SCHEDULER_PRIORITY_KEEP, |
224 | GNUNET_SCHEDULER_NO_PREREQUISITE_TASK, | 224 | GNUNET_SCHEDULER_NO_TASK, |
225 | TIMEOUT, | 225 | TIMEOUT, |
226 | &validation_failed, | 226 | &validation_failed, |
227 | NULL); | 227 | NULL); |