for (o = dbOpts; o && *o; o = oe) {
struct poptOption *opt;
const char * tok;
- int argInfo;
+ unsigned int argInfo;
/* Skip leading white space. */
while (*o && xisspace(*o))
};
FDIO_t ufdio = &ufdio_s ;
-int timedRead(FD_t fd, void * bufptr, int length)
+ssize_t timedRead(FD_t fd, void * bufptr, size_t length)
{
return ufdio->read(fd, bufptr, length);
}
* only S_ISREG() files are read, nothing to do with timed...
* TODO: get this out of the API
*/
-int timedRead(FD_t fd, void * bufptr, int length);
+ssize_t timedRead(FD_t fd, void * bufptr, size_t length);
/** \ingroup rpmio
* Identify per-desciptor I/O operation statistics.
struct rpmlua_s {
lua_State *L;
- int pushsize;
+ size_t pushsize;
int storeprint;
- int printbufsize;
- int printbufused;
+ size_t printbufsize;
+ size_t printbufused;
char *printbuf;
};
return 1;
if (_debug && _print)
-fprintf(stderr, " hash[%u] -- %s\n", plen, pgpHexStr(p, plen));
+fprintf(stderr, " hash[%zu] -- %s\n", plen, pgpHexStr(p, plen));
if (_digp && _digp->pubkey_algo == 0) {
_digp->hashlen = sizeof(*v) + plen;
_digp->hash = memcpy(xmalloc(_digp->hashlen), v, _digp->hashlen);