(no commit message)
[oweals/gnunet.git] / src / fs / fs_tree.c
index 760a7e03972dc6b9ca1dc99fc12f908bc2aa32c3..b38a9c3828e75c665d2ad7366f4abb1f31ca49a0 100644 (file)
@@ -329,8 +329,7 @@ void GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder * te)
                      iob,
                      &te->emsg))
        {
-         GNUNET_SCHEDULER_add_continuation (te->h->sched,
-                                            te->cont,
+         GNUNET_SCHEDULER_add_continuation (te->cont,
                                             te->cls,
                                             GNUNET_SCHEDULER_REASON_TIMEOUT);
          return;
@@ -350,8 +349,7 @@ void GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder * te)
       te->uri->type = chk;
       te->uri->data.chk.chk = te->chk_tree[0];
       te->uri->data.chk.file_length = GNUNET_htonll (te->size);
-      GNUNET_SCHEDULER_add_continuation (te->h->sched,
-                                        te->cont,
+      GNUNET_SCHEDULER_add_continuation (te->cont,
                                         te->cls,
                                         GNUNET_SCHEDULER_REASON_PREREQ_DONE);
       return;
@@ -385,8 +383,8 @@ void GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder * te)
              &mychk->query,
              te->publish_offset,
              (te->current_depth == te->chk_tree_depth) 
-             ? GNUNET_BLOCK_TYPE_DBLOCK 
-             : GNUNET_BLOCK_TYPE_IBLOCK,
+             ? GNUNET_BLOCK_TYPE_FS_DBLOCK 
+             : GNUNET_BLOCK_TYPE_FS_IBLOCK,
              enc,
              pt_size);
   if (NULL != te->progress)