aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_tree.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-09-05 21:01:12 +0000
committerChristian Grothoff <christian@grothoff.org>2009-09-05 21:01:12 +0000
commit0dfe519c70ef2c40c8f63499c521c0885af37cc2 (patch)
tree93ef6e3d939dc299d26479fc52d4bdbb590da830 /src/fs/fs_tree.c
parent9e645511bbd3775bd5c872eb5e58439676a59199 (diff)
downloadgnunet-0dfe519c70ef2c40c8f63499c521c0885af37cc2.tar.gz
gnunet-0dfe519c70ef2c40c8f63499c521c0885af37cc2.zip
towards having download
Diffstat (limited to 'src/fs/fs_tree.c')
-rw-r--r--src/fs/fs_tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c
index f5205f082..d151eb086 100644
--- a/src/fs/fs_tree.c
+++ b/src/fs/fs_tree.c
@@ -121,8 +121,8 @@ struct GNUNET_FS_TreeEncoder
121 * @param flen file length for which to compute the depth 121 * @param flen file length for which to compute the depth
122 * @return depth of the tree 122 * @return depth of the tree
123 */ 123 */
124static unsigned int 124unsigned int
125compute_depth (uint64_t flen) 125GNUNET_FS_compute_depth (uint64_t flen)
126{ 126{
127 unsigned int treeDepth; 127 unsigned int treeDepth;
128 uint64_t fl; 128 uint64_t fl;
@@ -179,7 +179,7 @@ GNUNET_FS_tree_encoder_create (struct GNUNET_FS_Handle *h,
179 te->proc = proc; 179 te->proc = proc;
180 te->progress = progress; 180 te->progress = progress;
181 te->cont = cont; 181 te->cont = cont;
182 te->chk_tree_depth = compute_depth (size); 182 te->chk_tree_depth = GNUNET_FS_compute_depth (size);
183 te->current_depth = te->chk_tree_depth; 183 te->current_depth = te->chk_tree_depth;
184 te->chk_tree = GNUNET_malloc (te->chk_tree_depth * 184 te->chk_tree = GNUNET_malloc (te->chk_tree_depth *
185 CHK_PER_INODE * 185 CHK_PER_INODE *