diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/fs/test_fs_unindex_persistence.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) | |
download | gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip |
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/fs/test_fs_unindex_persistence.c')
-rw-r--r-- | src/fs/test_fs_unindex_persistence.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/test_fs_unindex_persistence.c b/src/fs/test_fs_unindex_persistence.c index cfb08629b..7c76ee227 100644 --- a/src/fs/test_fs_unindex_persistence.c +++ b/src/fs/test_fs_unindex_persistence.c | |||
@@ -58,7 +58,7 @@ static const struct GNUNET_CONFIGURATION_Handle *cfg; | |||
58 | 58 | ||
59 | 59 | ||
60 | static void | 60 | static void |
61 | abort_publish_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 61 | abort_publish_task (void *cls) |
62 | { | 62 | { |
63 | GNUNET_FS_publish_stop (publish); | 63 | GNUNET_FS_publish_stop (publish); |
64 | publish = NULL; | 64 | publish = NULL; |
@@ -66,7 +66,7 @@ abort_publish_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
66 | 66 | ||
67 | 67 | ||
68 | static void | 68 | static void |
69 | abort_unindex_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 69 | abort_unindex_task (void *cls) |
70 | { | 70 | { |
71 | if (unindex != NULL) | 71 | if (unindex != NULL) |
72 | { | 72 | { |
@@ -87,7 +87,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event); | |||
87 | 87 | ||
88 | 88 | ||
89 | static void | 89 | static void |
90 | restart_fs_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 90 | restart_fs_task (void *cls) |
91 | { | 91 | { |
92 | GNUNET_FS_stop (fs); | 92 | GNUNET_FS_stop (fs); |
93 | fs = GNUNET_FS_start (cfg, "test-fs-unindex-persistence", &progress_cb, NULL, | 93 | fs = GNUNET_FS_start (cfg, "test-fs-unindex-persistence", &progress_cb, NULL, |