Derived from rpm5.org / Ralf S. Engelschall, I do agree length can't really
be negative...
/*@=bounds@*/
/*@-boundswrite@*/
-int rpmioSlurp(const char * fn, const byte ** bp, ssize_t * blenp)
+int rpmioSlurp(const char * fn, const byte ** bp, size_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@*/ ssize_t * blenp)
+ /*@out@*/ const unsigned char ** bp, /*@out@*/ size_t * blenp)
/*@globals h_errno, fileSystem, internalState @*/
/*@modifies *bp, *blenp, fileSystem, internalState @*/;
pgpArmor pgpReadPkts(const char * fn, const byte ** pkt, size_t * pktlen)
{
const byte * b = NULL;
- ssize_t blen;
+ size_t blen;
const char * enc = NULL;
const char * crcenc = NULL;
byte * dec;