diff options
author | Florian Dold <florian.dold@gmail.com> | 2015-10-07 22:01:03 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2015-10-07 22:01:03 +0000 |
commit | 383814672c031e49c4dffca0a69af3b0973d2248 (patch) | |
tree | 1c889a53a32ce6fd5786e23cd4f45e7de06db403 /src/set/ibf.c | |
parent | af432574e5009cc4748e512f6b78b43f40fdc19c (diff) | |
download | gnunet-383814672c031e49c4dffca0a69af3b0973d2248.tar.gz gnunet-383814672c031e49c4dffca0a69af3b0973d2248.zip |
statistics in set profiler, temp. fix for salt
Diffstat (limited to 'src/set/ibf.c')
-rw-r--r-- | src/set/ibf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/set/ibf.c b/src/set/ibf.c index 83cbafc65..19d15a5b2 100644 --- a/src/set/ibf.c +++ b/src/set/ibf.c | |||
@@ -76,12 +76,12 @@ ibf_create (uint32_t size, uint8_t hash_num) | |||
76 | { | 76 | { |
77 | struct InvertibleBloomFilter *ibf; | 77 | struct InvertibleBloomFilter *ibf; |
78 | 78 | ||
79 | /* TODO: use malloc_large */ | 79 | GNUNET_assert (0 != size); |
80 | 80 | ||
81 | ibf = GNUNET_new (struct InvertibleBloomFilter); | 81 | ibf = GNUNET_new (struct InvertibleBloomFilter); |
82 | ibf->count = GNUNET_malloc (size * sizeof (uint8_t)); | 82 | ibf->count = GNUNET_malloc_large (size * sizeof (uint8_t)); |
83 | ibf->key_sum = GNUNET_malloc (size * sizeof (struct IBF_Key)); | 83 | ibf->key_sum = GNUNET_malloc_large (size * sizeof (struct IBF_Key)); |
84 | ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct IBF_KeyHash)); | 84 | ibf->key_hash_sum = GNUNET_malloc_large (size * sizeof (struct IBF_KeyHash)); |
85 | ibf->size = size; | 85 | ibf->size = size; |
86 | ibf->hash_num = hash_num; | 86 | ibf->hash_num = hash_num; |
87 | 87 | ||