aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_list_indexed.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-03 09:35:48 +0000
committerChristian Grothoff <christian@grothoff.org>2015-08-03 09:35:48 +0000
commitd3e7a5e40dd2d5409009a30e1e41148c4d852673 (patch)
tree21ff19580a99137e9b8aec4393feb67f0f1c7b5a /src/fs/test_fs_list_indexed.c
parentec69ceabc67a72373a2579d871c5fe85676a73bd (diff)
downloadgnunet-d3e7a5e40dd2d5409009a30e1e41148c4d852673.tar.gz
gnunet-d3e7a5e40dd2d5409009a30e1e41148c4d852673.zip
-use simpler, modern scheduler API
Diffstat (limited to 'src/fs/test_fs_list_indexed.c')
-rw-r--r--src/fs/test_fs_list_indexed.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/fs/test_fs_list_indexed.c b/src/fs/test_fs_list_indexed.c
index 7059d30b5..97f465f79 100644
--- a/src/fs/test_fs_list_indexed.c
+++ b/src/fs/test_fs_list_indexed.c
@@ -76,11 +76,10 @@ abort_publish_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
76 76
77 77
78static void 78static void
79list_indexed_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 79list_indexed_task (void *cls,
80 const struct GNUNET_SCHEDULER_TaskContext *tc)
80{ 81{
81 82 GNUNET_SCHEDULER_add_now (&abort_publish_task, NULL);
82 GNUNET_SCHEDULER_add_continuation (&abort_publish_task, NULL,
83 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
84} 83}
85 84
86 85
@@ -100,8 +99,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
100 GNUNET_TIME_absolute_get_duration 99 GNUNET_TIME_absolute_get_duration
101 (start).rel_value_us) / 1024)); 100 (start).rel_value_us) / 1024));
102 if (0 == strcmp ("list_indexed-context-dir", event->value.publish.cctx)) 101 if (0 == strcmp ("list_indexed-context-dir", event->value.publish.cctx))
103 GNUNET_SCHEDULER_add_continuation (&list_indexed_task, NULL, 102 GNUNET_SCHEDULER_add_now (&list_indexed_task, NULL);
104 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
105 103
106 break; 104 break;
107 case GNUNET_FS_STATUS_PUBLISH_PROGRESS: 105 case GNUNET_FS_STATUS_PUBLISH_PROGRESS:
@@ -124,8 +122,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
124 event->value.publish.specifics.error.message); 122 event->value.publish.specifics.error.message);
125 err = 1; 123 err = 1;
126 if (0 == strcmp ("list_indexed-context-dir", event->value.publish.cctx)) 124 if (0 == strcmp ("list_indexed-context-dir", event->value.publish.cctx))
127 GNUNET_SCHEDULER_add_continuation (&abort_publish_task, NULL, 125 GNUNET_SCHEDULER_add_now (&abort_publish_task, NULL);
128 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
129 break; 126 break;
130 case GNUNET_FS_STATUS_PUBLISH_START: 127 case GNUNET_FS_STATUS_PUBLISH_START:
131 ret = event->value.publish.cctx; 128 ret = event->value.publish.cctx;