summaryrefslogtreecommitdiff
path: root/rpmio/rpmfileutil.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-06-11 09:25:02 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-11 09:25:02 +0300
commit55d3bbd4b87ea7eec48cfa573bdac9001a8cc4da (patch)
tree36b42ec117832933d7bea48b57ebb425d399f903 /rpmio/rpmfileutil.c
parent6c4772537d39f413cf62b1eefdcc151ae3a4b056 (diff)
downloadrpm-55d3bbd4b87ea7eec48cfa573bdac9001a8cc4da.tar.gz
Enable rpmDoDigest() to pass large file sizes
- should probably be off_t instead of rpm_loff_t as this is lowlevel io business and only verification code cares about the size reported by it, otoh forcing 64bit always avoids having to deal with variable off_t type on printing.. shrug
Diffstat (limited to 'rpmio/rpmfileutil.c')
-rw-r--r--rpmio/rpmfileutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmio/rpmfileutil.c b/rpmio/rpmfileutil.c
index 93c5cd52f..60c4ba520 100644
--- a/rpmio/rpmfileutil.c
+++ b/rpmio/rpmfileutil.c
@@ -25,7 +25,7 @@
#include "debug.h"
-static int open_dso(const char * path, pid_t * pidp, rpm_off_t *fsizep)
+static int open_dso(const char * path, pid_t * pidp, rpm_loff_t *fsizep)
{
static const char * cmd = NULL;
static int initted = 0;
@@ -124,7 +124,7 @@ exit:
}
int rpmDoDigest(pgpHashAlgo algo, const char * fn,int asAscii,
- unsigned char * digest, rpm_off_t * fsizep)
+ unsigned char * digest, rpm_loff_t * fsizep)
{
const char * path;
urltype ut = urlPath(fn, &path);
@@ -132,7 +132,7 @@ int rpmDoDigest(pgpHashAlgo algo, const char * fn,int asAscii,
size_t diglen;
unsigned char buf[32*BUFSIZ];
FD_t fd;
- rpm_off_t fsize = 0;
+ rpm_loff_t fsize = 0;
pid_t pid = 0;
int rc = 0;
int fdno;