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/gnunet-service-fs_pr.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/gnunet-service-fs_pr.c')
-rw-r--r-- | src/fs/gnunet-service-fs_pr.c | 8 |
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 | */ |
1305 | static void | 1304 | static void |
1306 | warn_delay_task (void *cls, | 1305 | warn_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 | */ |
1328 | static void | 1325 | static void |
1329 | odc_warn_delay_task (void *cls, | 1326 | odc_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 | ||