diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-09-05 21:01:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-09-05 21:01:12 +0000 |
commit | 0dfe519c70ef2c40c8f63499c521c0885af37cc2 (patch) | |
tree | 93ef6e3d939dc299d26479fc52d4bdbb590da830 /src/fs/fs_tree.c | |
parent | 9e645511bbd3775bd5c872eb5e58439676a59199 (diff) | |
download | gnunet-0dfe519c70ef2c40c8f63499c521c0885af37cc2.tar.gz gnunet-0dfe519c70ef2c40c8f63499c521c0885af37cc2.zip |
towards having download
Diffstat (limited to 'src/fs/fs_tree.c')
-rw-r--r-- | src/fs/fs_tree.c | 6 |
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 | */ |
124 | static unsigned int | 124 | unsigned int |
125 | compute_depth (uint64_t flen) | 125 | GNUNET_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 * |