aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_pr.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/fs/gnunet-service-fs_pr.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-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/gnunet-service-fs_pr.c')
-rw-r--r--src/fs/gnunet-service-fs_pr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c
index 8c97e0898..a7a62a743 100644
--- a/src/fs/gnunet-service-fs_pr.c
+++ b/src/fs/gnunet-service-fs_pr.c
@@ -1300,11 +1300,9 @@ GSF_cadet_lookup_ (struct GSF_PendingRequest *pr)
1300 * Task that issues a warning if the datastore lookup takes too long. 1300 * Task that issues a warning if the datastore lookup takes too long.
1301 * 1301 *
1302 * @param cls the `struct GSF_PendingRequest` 1302 * @param cls the `struct GSF_PendingRequest`
1303 * @param tc task context
1304 */ 1303 */
1305static void 1304static void
1306warn_delay_task (void *cls, 1305warn_delay_task (void *cls)
1307 const struct GNUNET_SCHEDULER_TaskContext *tc)
1308{ 1306{
1309 struct GSF_PendingRequest *pr = cls; 1307 struct GSF_PendingRequest *pr = cls;
1310 1308
@@ -1323,11 +1321,9 @@ warn_delay_task (void *cls,
1323 * Task that issues a warning if the datastore lookup takes too long. 1321 * Task that issues a warning if the datastore lookup takes too long.
1324 * 1322 *
1325 * @param cls the `struct GSF_PendingRequest` 1323 * @param cls the `struct GSF_PendingRequest`
1326 * @param tc task context
1327 */ 1324 */
1328static void 1325static void
1329odc_warn_delay_task (void *cls, 1326odc_warn_delay_task (void *cls)
1330 const struct GNUNET_SCHEDULER_TaskContext *tc)
1331{ 1327{
1332 struct GSF_PendingRequest *pr = cls; 1328 struct GSF_PendingRequest *pr = cls;
1333 1329