From c9432075d84d3c50171367e7d648a3a09f431994 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 20 Jan 2011 14:20:30 +0000 Subject: major rewrite of fs_download, hopefully fixing 1641 --- src/fs/fs_unindex.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/fs/fs_unindex.c') diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index aa73bc01d..c4360a82d 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c @@ -114,7 +114,7 @@ GNUNET_FS_unindex_make_status_ (struct GNUNET_FS_ProgressInfo *pi, * @param offset where are we in the file * @param pt_block plaintext of the currently processed block * @param pt_size size of pt_block - * @param depth depth of the block in the tree + * @param depth depth of the block in the tree, 0 for DBLOCK */ static void unindex_progress (void *cls, @@ -188,16 +188,16 @@ process_cont (void *cls, * or (on error) "GNUNET_FS_tree_encode_finish". * * @param cls closure - * @param query the query for the block (key for lookup in the datastore) + * @param chk content hash key for the block (key for lookup in the datastore) * @param offset offset of the block - * @param depth depth of the block + * @param depth depth of the block, 0 for DBLOCK * @param type type of the block (IBLOCK or DBLOCK) * @param block the (encrypted) block * @param block_size size of block (in bytes) */ static void unindex_process (void *cls, - const GNUNET_HashCode *query, + const struct ContentHashKey *chk, uint64_t offset, unsigned int depth, enum GNUNET_BLOCK_Type type, @@ -226,7 +226,7 @@ unindex_process (void *cls, "Sending REMOVE request to DATASTORE service\n"); #endif GNUNET_DATASTORE_remove (uc->dsh, - query, + &chk->query, size, data, -2, 1, -- cgit v1.2.3