aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_bloomfilter.c
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2009-06-16 20:13:13 +0000
committerNils Durner <durner@gnunet.org>2009-06-16 20:13:13 +0000
commitdc6e9887c24209d0e3dfb6cfb30fbde6ae3b47e9 (patch)
tree08e0d0aaf9d67b2fd259dcfed6def6abc91f34c4 /src/util/container_bloomfilter.c
parent841cf45c29f46825a8e9913c6e45dcff21318f5a (diff)
downloadgnunet-dc6e9887c24209d0e3dfb6cfb30fbde6ae3b47e9.tar.gz
gnunet-dc6e9887c24209d0e3dfb6cfb30fbde6ae3b47e9.zip
GNUNET_IO_handle => GNUNET_DISK_handle
Diffstat (limited to 'src/util/container_bloomfilter.c')
-rw-r--r--src/util/container_bloomfilter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c
index 37780cb2a..e5a0955c4 100644
--- a/src/util/container_bloomfilter.c
+++ b/src/util/container_bloomfilter.c
@@ -151,7 +151,7 @@ incrementBit (char *bitArray, unsigned int bitIdx, const struct GNUNET_IO_Handle
151 unsigned int targetLoc; 151 unsigned int targetLoc;
152 152
153 setBit (bitArray, bitIdx); 153 setBit (bitArray, bitIdx);
154 if (GNUNET_IO_handle_invalid (fh)) 154 if (GNUNET_DISK_handle_invalid (fh))
155 return; 155 return;
156 /* Update the counter file on disk */ 156 /* Update the counter file on disk */
157 fileSlot = bitIdx / 2; 157 fileSlot = bitIdx / 2;
@@ -195,7 +195,7 @@ decrementBit (char *bitArray, unsigned int bitIdx, const struct GNUNET_IO_Handle
195 unsigned int low; 195 unsigned int low;
196 unsigned int targetLoc; 196 unsigned int targetLoc;
197 197
198 if (GNUNET_IO_handle_invalid (fh)) 198 if (GNUNET_DISK_handle_invalid (fh))
199 return; /* cannot decrement! */ 199 return; /* cannot decrement! */
200 /* Each char slot in the counter file holds two 4 bit counters */ 200 /* Each char slot in the counter file holds two 4 bit counters */
201 fileSlot = bitIdx / 2; 201 fileSlot = bitIdx / 2;
@@ -246,7 +246,7 @@ makeEmptyFile (const struct GNUNET_IO_Handle *fh, unsigned int size)
246 unsigned int bytesleft = size; 246 unsigned int bytesleft = size;
247 int res = 0; 247 int res = 0;
248 248
249 if (GNUNET_IO_handle_invalid (fh)) 249 if (GNUNET_DISK_handle_invalid (fh))
250 return GNUNET_SYSERR; 250 return GNUNET_SYSERR;
251 buffer = GNUNET_malloc (BUFFSIZE); 251 buffer = GNUNET_malloc (BUFFSIZE);
252 memset (buffer, 0, BUFFSIZE); 252 memset (buffer, 0, BUFFSIZE);