diff options
Diffstat (limited to 'src/util/container_bloomfilter.c')
-rw-r--r-- | src/util/container_bloomfilter.c | 6 |
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); |