aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_bloomfilter.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-31 10:23:30 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-31 10:23:30 +0000
commit4ebecadf090c6602f8f571d24556e9b902ec5b20 (patch)
treea41755a6c7b57d4e24e71d7cc20f56c9c079320b /src/util/container_bloomfilter.c
parentdc20c525694ee21014e88abd2fa51cf78d6c22f9 (diff)
downloadgnunet-4ebecadf090c6602f8f571d24556e9b902ec5b20.tar.gz
gnunet-4ebecadf090c6602f8f571d24556e9b902ec5b20.zip
-LRN: OFF_T/off_t patch for 64-bit files on W32
Diffstat (limited to 'src/util/container_bloomfilter.c')
-rw-r--r--src/util/container_bloomfilter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c
index 9ae8206fe..5016b70ef 100644
--- a/src/util/container_bloomfilter.c
+++ b/src/util/container_bloomfilter.c
@@ -183,7 +183,7 @@ static void
183incrementBit (char *bitArray, unsigned int bitIdx, 183incrementBit (char *bitArray, unsigned int bitIdx,
184 const struct GNUNET_DISK_FileHandle *fh) 184 const struct GNUNET_DISK_FileHandle *fh)
185{ 185{
186 off_t fileSlot; 186 uint64_t fileSlot;
187 unsigned char value; 187 unsigned char value;
188 unsigned int high; 188 unsigned int high;
189 unsigned int low; 189 unsigned int low;
@@ -231,7 +231,7 @@ static void
231decrementBit (char *bitArray, unsigned int bitIdx, 231decrementBit (char *bitArray, unsigned int bitIdx,
232 const struct GNUNET_DISK_FileHandle *fh) 232 const struct GNUNET_DISK_FileHandle *fh)
233{ 233{
234 off_t fileSlot; 234 uint64_t fileSlot;
235 unsigned char value; 235 unsigned char value;
236 unsigned int high; 236 unsigned int high;
237 unsigned int low; 237 unsigned int low;
@@ -453,10 +453,10 @@ GNUNET_CONTAINER_bloomfilter_load (const char *filename, size_t size,
453{ 453{
454 struct GNUNET_CONTAINER_BloomFilter *bf; 454 struct GNUNET_CONTAINER_BloomFilter *bf;
455 char *rbuff; 455 char *rbuff;
456 off_t pos; 456 OFF_T pos;
457 int i; 457 int i;
458 size_t ui; 458 size_t ui;
459 off_t fsize; 459 OFF_T fsize;
460 int must_read; 460 int must_read;
461 461
462 GNUNET_assert (NULL != filename); 462 GNUNET_assert (NULL != filename);