aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_unindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_unindex.c')
-rw-r--r--src/fs/fs_unindex.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c
index e4ac4efd6..b3bcd48bf 100644
--- a/src/fs/fs_unindex.c
+++ b/src/fs/fs_unindex.c
@@ -318,8 +318,7 @@ unindex_finish (void *cls,
318 uc->dsh = NULL; 318 uc->dsh = NULL;
319 uc->state = UNINDEX_STATE_FS_NOTIFY; 319 uc->state = UNINDEX_STATE_FS_NOTIFY;
320 GNUNET_FS_unindex_sync_ (uc); 320 GNUNET_FS_unindex_sync_ (uc);
321 uc->client = GNUNET_CLIENT_connect (uc->h->sched, 321 uc->client = GNUNET_CLIENT_connect ("fs",
322 "fs",
323 uc->h->cfg); 322 uc->h->cfg);
324 if (uc->client == NULL) 323 if (uc->client == NULL)
325 { 324 {
@@ -355,8 +354,7 @@ unindex_finish (void *cls,
355void 354void
356GNUNET_FS_unindex_do_remove_ (struct GNUNET_FS_UnindexContext *uc) 355GNUNET_FS_unindex_do_remove_ (struct GNUNET_FS_UnindexContext *uc)
357{ 356{
358 uc->dsh = GNUNET_DATASTORE_connect (uc->h->cfg, 357 uc->dsh = GNUNET_DATASTORE_connect (uc->h->cfg);
359 uc->h->sched);
360 if (NULL == uc->dsh) 358 if (NULL == uc->dsh)
361 { 359 {
362 uc->state = UNINDEX_STATE_ERROR; 360 uc->state = UNINDEX_STATE_ERROR;
@@ -506,8 +504,7 @@ GNUNET_FS_unindex_start (struct GNUNET_FS_Handle *h,
506 pi.status = GNUNET_FS_STATUS_UNINDEX_START; 504 pi.status = GNUNET_FS_STATUS_UNINDEX_START;
507 pi.value.unindex.eta = GNUNET_TIME_UNIT_FOREVER_REL; 505 pi.value.unindex.eta = GNUNET_TIME_UNIT_FOREVER_REL;
508 GNUNET_FS_unindex_make_status_ (&pi, ret, 0); 506 GNUNET_FS_unindex_make_status_ (&pi, ret, 0);
509 ret->fhc = GNUNET_CRYPTO_hash_file (h->sched, 507 ret->fhc = GNUNET_CRYPTO_hash_file (GNUNET_SCHEDULER_PRIORITY_IDLE,
510 GNUNET_SCHEDULER_PRIORITY_IDLE,
511 filename, 508 filename,
512 HASHING_BLOCKSIZE, 509 HASHING_BLOCKSIZE,
513 &GNUNET_FS_unindex_process_hash_, 510 &GNUNET_FS_unindex_process_hash_,