aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-22 11:40:46 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-22 11:40:46 +0100
commitac95589b0c3f54a7991b1461028fdb5e47c887db (patch)
tree5e792390290a836b7673fae09675c39d589d6832 /src/fs
parent8000747074b82caeacb0f43710940220d9840d37 (diff)
downloadgnunet-ac95589b0c3f54a7991b1461028fdb5e47c887db.tar.gz
gnunet-ac95589b0c3f54a7991b1461028fdb5e47c887db.zip
try to fix BF size mess created by original BLOCK API change
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/plugin_block_fs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fs/plugin_block_fs.c b/src/fs/plugin_block_fs.c
index 6c574fca2..5ccbd237e 100644
--- a/src/fs/plugin_block_fs.c
+++ b/src/fs/plugin_block_fs.c
@@ -28,7 +28,6 @@
28#include "gnunet_fs_service.h" 28#include "gnunet_fs_service.h"
29#include "block_fs.h" 29#include "block_fs.h"
30#include "gnunet_signatures.h" 30#include "gnunet_signatures.h"
31#include "gnunet_constants.h"
32#include "gnunet_block_group_lib.h" 31#include "gnunet_block_group_lib.h"
33 32
34 33
@@ -56,7 +55,7 @@ static size_t
56compute_bloomfilter_size (unsigned int entry_count) 55compute_bloomfilter_size (unsigned int entry_count)
57{ 56{
58 size_t size; 57 size_t size;
59 unsigned int ideal = (entry_count * GNUNET_CONSTANTS_BLOOMFILTER_K) / 4; 58 unsigned int ideal = (entry_count * BLOOMFILTER_K) / 4;
60 uint16_t max = 1 << 15; 59 uint16_t max = 1 << 15;
61 60
62 if (entry_count > max) 61 if (entry_count > max)