aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-02-13 09:42:03 +0000
committerChristian Grothoff <christian@grothoff.org>2011-02-13 09:42:03 +0000
commit54440ebeed80d95185531c4725bd80e3bed161e5 (patch)
treecfc09863066803f58d2f375029b19fd2d482c394 /src/util
parent5bc01eca77a685f63ac94129ee0eea0140beaf76 (diff)
downloadgnunet-54440ebeed80d95185531c4725bd80e3bed161e5.tar.gz
gnunet-54440ebeed80d95185531c4725bd80e3bed161e5.zip
correct unit placement for GAUGER calls
Diffstat (limited to 'src/util')
-rw-r--r--src/util/container_bloomfilter.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c
index d9cadb945..ea9c4e154 100644
--- a/src/util/container_bloomfilter.c
+++ b/src/util/container_bloomfilter.c
@@ -93,6 +93,21 @@ GNUNET_CONTAINER_bloomfilter_get_size (const struct GNUNET_CONTAINER_BloomFilter
93 93
94 94
95/** 95/**
96 * Copy an existing memory. Any association with a file
97 * on-disk will be lost in the process.
98 * @param bf the filter to copy
99 * @retun copy of the bf
100 */
101struct GNUNET_CONTAINER_BloomFilter *
102GNUNET_CONTAINER_bloomfilter_copy (const struct GNUNET_CONTAINER_BloomFilter *bf)
103{
104 return GNUNET_CONTAINER_bloomfilter_init (bf->bitArray,
105 bf->bitArraySize,
106 bf->addressesPerElement);
107}
108
109
110/**
96 * Sets a bit active in the bitArray. Increment bit-specific 111 * Sets a bit active in the bitArray. Increment bit-specific
97 * usage counter on disk only if below 4bit max (==15). 112 * usage counter on disk only if below 4bit max (==15).
98 * 113 *