diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-04 14:10:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-04 14:10:32 +0000 |
commit | cf45b8dff29c366d51aa2e6ea6a64b99b514b9c9 (patch) | |
tree | 5cb37c041743daff5af528dbbe24f5c563ce702e /src/fs/test_fs_download.c | |
parent | b91546a3de767292e6472c6b1927480adba43d88 (diff) | |
download | gnunet-cf45b8dff29c366d51aa2e6ea6a64b99b514b9c9.tar.gz gnunet-cf45b8dff29c366d51aa2e6ea6a64b99b514b9c9.zip |
bugfixes and redesigning scheduler API
Diffstat (limited to 'src/fs/test_fs_download.c')
-rw-r--r-- | src/fs/test_fs_download.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c index 04cd3e5d8..4e73ef182 100644 --- a/src/fs/test_fs_download.c +++ b/src/fs/test_fs_download.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include "gnunet_arm_service.h" | 29 | #include "gnunet_arm_service.h" |
30 | #include "gnunet_fs_service.h" | 30 | #include "gnunet_fs_service.h" |
31 | 31 | ||
32 | #define VERBOSE GNUNET_NO | 32 | #define VERBOSE GNUNET_YES |
33 | 33 | ||
34 | #define START_ARM GNUNET_YES | 34 | #define START_ARM GNUNET_YES |
35 | 35 | ||
@@ -133,7 +133,6 @@ progress_cb (void *cls, | |||
133 | printf ("Download complete, %llu kbps.\n", | 133 | printf ("Download complete, %llu kbps.\n", |
134 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); | 134 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); |
135 | GNUNET_SCHEDULER_add_continuation (sched, | 135 | GNUNET_SCHEDULER_add_continuation (sched, |
136 | GNUNET_NO, | ||
137 | &abort_download_task, | 136 | &abort_download_task, |
138 | NULL, | 137 | NULL, |
139 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 138 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
@@ -154,7 +153,6 @@ progress_cb (void *cls, | |||
154 | event->value.publish.specifics.error.message); | 153 | event->value.publish.specifics.error.message); |
155 | GNUNET_break (0); | 154 | GNUNET_break (0); |
156 | GNUNET_SCHEDULER_add_continuation (sched, | 155 | GNUNET_SCHEDULER_add_continuation (sched, |
157 | GNUNET_NO, | ||
158 | &abort_publish_task, | 156 | &abort_publish_task, |
159 | NULL, | 157 | NULL, |
160 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 158 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
@@ -164,7 +162,6 @@ progress_cb (void *cls, | |||
164 | "Error downloading file: %s\n", | 162 | "Error downloading file: %s\n", |
165 | event->value.download.specifics.error.message); | 163 | event->value.download.specifics.error.message); |
166 | GNUNET_SCHEDULER_add_continuation (sched, | 164 | GNUNET_SCHEDULER_add_continuation (sched, |
167 | GNUNET_NO, | ||
168 | &abort_download_task, | 165 | &abort_download_task, |
169 | NULL, | 166 | NULL, |
170 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 167 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
@@ -196,7 +193,6 @@ progress_cb (void *cls, | |||
196 | case GNUNET_FS_STATUS_DOWNLOAD_STOPPED: | 193 | case GNUNET_FS_STATUS_DOWNLOAD_STOPPED: |
197 | GNUNET_assert (download == event->value.download.dc); | 194 | GNUNET_assert (download == event->value.download.dc); |
198 | GNUNET_SCHEDULER_add_continuation (sched, | 195 | GNUNET_SCHEDULER_add_continuation (sched, |
199 | GNUNET_NO, | ||
200 | &abort_publish_task, | 196 | &abort_publish_task, |
201 | NULL, | 197 | NULL, |
202 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 198 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |