summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-06-09 15:33:27 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-09 15:33:27 +0300
commit45ac934fdcf0efc14147051d37bab789b00b41da (patch)
tree98e8ab1c0632a63336d57f4e4e8d292d19af9ced
parent243218b9cdfe43a878677d1abd530df0ee9986da (diff)
downloadlibrpm-tizen-45ac934fdcf0efc14147051d37bab789b00b41da.tar.gz
librpm-tizen-45ac934fdcf0efc14147051d37bab789b00b41da.tar.bz2
librpm-tizen-45ac934fdcf0efc14147051d37bab789b00b41da.zip
Use 64bit type for fdSet/GetCpioPos() in rpmio
-rw-r--r--rpmio/rpmio_internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmio/rpmio_internal.h b/rpmio/rpmio_internal.h
index 81006c0cc..6bf658c8f 100644
--- a/rpmio/rpmio_internal.h
+++ b/rpmio/rpmio_internal.h
@@ -66,7 +66,7 @@ struct _FD_s {
unsigned int firstFree; /* fadio: */
rpm_off_t fileSize; /* fadio: */
- rpm_off_t fd_cpioPos; /* cpio: */
+ rpm_loff_t fd_cpioPos; /* cpio: */
};
#define FDSANE(fd) assert(fd && fd->magic == FDMAGIC)
@@ -266,7 +266,7 @@ int fdGetRdTimeoutSecs(FD_t fd)
/** \ingroup rpmio
*/
static inline
-long int fdGetCpioPos(FD_t fd)
+rpm_loff_t fdGetCpioPos(FD_t fd)
{
FDSANE(fd);
return fd->fd_cpioPos;
@@ -275,7 +275,7 @@ long int fdGetCpioPos(FD_t fd)
/** \ingroup rpmio
*/
static inline
-void fdSetCpioPos(FD_t fd, long int cpioPos)
+void fdSetCpioPos(FD_t fd, rpm_loff_t cpioPos)
{
FDSANE(fd);
fd->fd_cpioPos = cpioPos;