From ef553264c58d5286b451f5feb89dbd63bac86236 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 31 Dec 2011 17:31:25 +0000 Subject: [PATCH] -LRN: fixing issues that slipped through earlier --- src/include/gnunet_disk_lib.h | 4 ++-- src/util/container_bloomfilter.c | 4 ++-- src/util/disk.c | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index eab3c7bfa..19c1328bd 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h @@ -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); diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c index 5016b70ef..84aab6b17 100644 --- a/src/util/container_bloomfilter.c +++ b/src/util/container_bloomfilter.c @@ -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; diff --git a/src/util/disk.c b/src/util/disk.c index 1131ade2d..2cec160b8 100644 --- a/src/util/disk.c +++ b/src/util/disk.c @@ -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 } -- 2.25.1