aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_scheduler.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-09-07 11:58:04 +0000
committerChristian Grothoff <christian@grothoff.org>2009-09-07 11:58:04 +0000
commit9dac7b6b7b035d55bdb9731795712ead92e11f76 (patch)
tree8bed4ad4617f95bcdaac75dc43c2b2dd461b3e76 /src/util/test_scheduler.c
parent2a534fc5efadca1b65648efb903c3b4c17ac33ad (diff)
downloadgnunet-9dac7b6b7b035d55bdb9731795712ead92e11f76.tar.gz
gnunet-9dac7b6b7b035d55bdb9731795712ead92e11f76.zip
fixes
Diffstat (limited to 'src/util/test_scheduler.c')
-rw-r--r--src/util/test_scheduler.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/util/test_scheduler.c b/src/util/test_scheduler.c
index 0d5af1c0c..811389953 100644
--- a/src/util/test_scheduler.c
+++ b/src/util/test_scheduler.c
@@ -138,7 +138,6 @@ task1 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
138{ 138{
139 int *ok = cls; 139 int *ok = cls;
140 GNUNET_SCHEDULER_TaskIdentifier t2; 140 GNUNET_SCHEDULER_TaskIdentifier t2;
141 GNUNET_SCHEDULER_TaskIdentifier t3;
142 GNUNET_SCHEDULER_TaskIdentifier t4; 141 GNUNET_SCHEDULER_TaskIdentifier t4;
143 142
144 GNUNET_assert (1 == *ok); 143 GNUNET_assert (1 == *ok);
@@ -154,12 +153,12 @@ task1 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
154 GNUNET_NO, 153 GNUNET_NO,
155 GNUNET_SCHEDULER_PRIORITY_IDLE, 154 GNUNET_SCHEDULER_PRIORITY_IDLE,
156 t2, &task4, cls); 155 t2, &task4, cls);
157 t3 = GNUNET_SCHEDULER_add_delayed (tc->sched, 156 GNUNET_SCHEDULER_add_delayed (tc->sched,
158 GNUNET_NO, 157 GNUNET_NO,
159 GNUNET_SCHEDULER_PRIORITY_DEFAULT, 158 GNUNET_SCHEDULER_PRIORITY_DEFAULT,
160 t2, 159 t2,
161 GNUNET_TIME_relative_get_zero (), 160 GNUNET_TIME_relative_get_zero (),
162 &task3, cls); 161 &task3, cls);
163 /* t4 will go first: lower prio, but prereq! */ 162 /* t4 will go first: lower prio, but prereq! */
164 GNUNET_SCHEDULER_add_after (tc->sched, 163 GNUNET_SCHEDULER_add_after (tc->sched,
165 GNUNET_NO, 164 GNUNET_NO,