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;
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;
}
#define __power_pc() 0
#endif
+#include <rpmio_internal.h>
#include <rpmlib.h>
#include <rpmmacro.h>
#include <rpmlua.h>
rpmGlobalMacroContext, fileSystem, internalState @*/
{
char *cpu = NULL, *vendor = NULL, *os = NULL, *gnu = NULL;
- char * b = NULL;
+ byte * b = NULL;
ssize_t blen = 0;
int init_platform = 0;
char * p, * pe;
goto exit;
}
- p = b;
+ p = (char *)b;
for (pe = p; p && *p; p = pe) {
pe = strchr(p, '\n');
if (pe)
/*@=bounds@*/
/*@-boundswrite@*/
-int rpmioSlurp(const char * fn, const byte ** bp, size_t * blenp)
+int rpmioSlurp(const char * fn, byte ** bp, ssize_t * blenp)
{
static ssize_t blenmax = (32 * BUFSIZ);
ssize_t blen = 0;
* @return 0 on success
*/
int rpmioSlurp(const char * fn,
- /*@out@*/ const unsigned char ** bp, /*@out@*/ size_t * blenp)
+ /*@out@*/ byte ** bp, /*@out@*/ ssize_t * blenp)
/*@globals h_errno, fileSystem, internalState @*/
/*@modifies *bp, *blenp, fileSystem, internalState @*/;
/*@-boundswrite@*/
pgpArmor pgpReadPkts(const char * fn, const byte ** pkt, size_t * pktlen)
{
- const byte * b = NULL;
- size_t blen;
+ byte * b = NULL;
+ ssize_t blen;
const char * enc = NULL;
const char * crcenc = NULL;
byte * dec;