diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-07-12 11:55:45 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-07-12 11:55:45 +0300 |
commit | cce81e1fa00d98dc97b6a9daa6b8b55437933ff8 (patch) | |
tree | 8a557fc746f2d407c528ab27c1b39429dabad0cc /build | |
parent | d52a645802ea47b2a4a435d628dedc86b509df51 (diff) | |
download | rpm-cce81e1fa00d98dc97b6a9daa6b8b55437933ff8.tar.gz rpm-cce81e1fa00d98dc97b6a9daa6b8b55437933ff8.tar.bz2 rpm-cce81e1fa00d98dc97b6a9daa6b8b55437933ff8.zip |
rpmioSlurp() related cleanups.
Derived from rpm5.org / Ralf S. Engelschall
Diffstat (limited to 'build')
-rw-r--r-- | build/files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/files.c b/build/files.c index 9014f6e43..aeaec15aa 100644 --- a/build/files.c +++ b/build/files.c @@ -1779,8 +1779,8 @@ static int processMetadataFile(Package pkg, FileList fl, const char * fileURL, const char * buildURL = "%{_builddir}/%{?buildsubdir}/"; const char * fn = NULL; const char * apkt = NULL; - const unsigned char * pkt = NULL; - size_t pktlen = 0; + byte * pkt = NULL; + ssize_t pktlen = 0; int absolute = 0; int rc = 1; int xx; @@ -1800,7 +1800,7 @@ static int processMetadataFile(Package pkg, FileList fl, const char * fileURL, goto exit; /*@notreached@*/ break; case RPMTAG_PUBKEYS: - if ((rc = pgpReadPkts(fn, &pkt, &pktlen)) <= 0) { + if ((rc = pgpReadPkts(fn, (const byte **)&pkt, (size_t *)&pktlen)) <= 0) { rpmError(RPMERR_BADSPEC, _("%s: public key read failed.\n"), fn); goto exit; } |