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/fs_publish_ksk.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/fs_publish_ksk.c')
-rw-r--r-- | src/fs/fs_publish_ksk.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fs/fs_publish_ksk.c b/src/fs/fs_publish_ksk.c index b3e9de728..a7ad3e91f 100644 --- a/src/fs/fs_publish_ksk.c +++ b/src/fs/fs_publish_ksk.c | |||
@@ -110,11 +110,9 @@ struct GNUNET_FS_PublishKskContext | |||
110 | * of the keywords). | 110 | * of the keywords). |
111 | * | 111 | * |
112 | * @param cls closure of type `struct PublishKskContext *` | 112 | * @param cls closure of type `struct PublishKskContext *` |
113 | * @param tc unused | ||
114 | */ | 113 | */ |
115 | static void | 114 | static void |
116 | publish_ksk_cont (void *cls, | 115 | publish_ksk_cont (void *cls); |
117 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
118 | 116 | ||
119 | 117 | ||
120 | /** | 118 | /** |
@@ -148,11 +146,9 @@ kb_put_cont (void *cls, | |||
148 | * publishing operation (iterating over all of the keywords). | 146 | * publishing operation (iterating over all of the keywords). |
149 | * | 147 | * |
150 | * @param cls closure of type `struct GNUNET_FS_PublishKskContext *` | 148 | * @param cls closure of type `struct GNUNET_FS_PublishKskContext *` |
151 | * @param tc unused | ||
152 | */ | 149 | */ |
153 | static void | 150 | static void |
154 | publish_ksk_cont (void *cls, | 151 | publish_ksk_cont (void *cls) |
155 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
156 | { | 152 | { |
157 | struct GNUNET_FS_PublishKskContext *pkc = cls; | 153 | struct GNUNET_FS_PublishKskContext *pkc = cls; |
158 | const char *keyword; | 154 | const char *keyword; |