-LRN: fixing issues that slipped through earlier
authorChristian Grothoff <christian@grothoff.org>
Sat, 31 Dec 2011 17:31:25 +0000 (17:31 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 31 Dec 2011 17:31:25 +0000 (17:31 +0000)
src/include/gnunet_disk_lib.h
src/util/container_bloomfilter.c
src/util/disk.c

index eab3c7bfa05d3390d553743ec4f008267445ae8f..19c1328bdc473fb19ce9af6d1bc045268000837e 100644 (file)
@@ -301,8 +301,8 @@ GNUNET_DISK_file_test (const char *fil);
  * @param whence specification to which position the offset parameter relates to
  * @return the new position on success, GNUNET_SYSERR otherwise
  */
-uint64_t
-GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, uint64_t offset,
+OFF_T
+GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, OFF_T offset,
                        enum GNUNET_DISK_Seek whence);
 
 
index 5016b70efae0412de72c70c94343dbdbbc7743f4..84aab6b17865dd9484911136bec62ec725738c8a 100644 (file)
@@ -183,7 +183,7 @@ static void
 incrementBit (char *bitArray, unsigned int bitIdx,
               const struct GNUNET_DISK_FileHandle *fh)
 {
-  uint64_t fileSlot;
+  OFF_T fileSlot;
   unsigned char value;
   unsigned int high;
   unsigned int low;
@@ -231,7 +231,7 @@ static void
 decrementBit (char *bitArray, unsigned int bitIdx,
               const struct GNUNET_DISK_FileHandle *fh)
 {
-  uint64_t fileSlot;
+  OFF_T fileSlot;
   unsigned char value;
   unsigned int high;
   unsigned int low;
index 1131ade2d1ce4ca070c5db30cb6d0b7af4ed5344..2cec160b8be7cd766b798c13c6aad29b5728a51a 100644 (file)
@@ -244,8 +244,8 @@ GNUNET_DISK_file_handle_size (struct GNUNET_DISK_FileHandle *fh,
  * @param whence specification to which position the offset parameter relates to
  * @return the new position on success, GNUNET_SYSERR otherwise
  */
-uint64_t
-GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle * h, uint64_t offset,
+OFF_T
+GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle * h, OFF_T offset,
                        enum GNUNET_DISK_Seek whence)
 {
   if (h == NULL)
@@ -269,13 +269,13 @@ GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle * h, uint64_t offset,
     SetErrnoFromWinError (GetLastError ());
     return GNUNET_SYSERR;
   }
-  return new_pos.QuadPart;
+  return (OFF_T) new_pos.QuadPart;
 #else
   static int t[] = {[GNUNET_DISK_SEEK_SET] = SEEK_SET,
     [GNUNET_DISK_SEEK_CUR] = SEEK_CUR,[GNUNET_DISK_SEEK_END] = SEEK_END
   };
 
-  return lseek64 (h->fd, offset, t[whence]);
+  return lseek (h->fd, offset, t[whence]);
 #endif
 }