From 95c55a1af9fa4be56737eefa0e709ce5abe47deb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ralf=20Cors=C3=A9pius?= Date: Mon, 26 Nov 2007 10:53:47 +0100 Subject: [PATCH] Type pedantery. --- lib/formats.c | 2 +- rpmio/rpmpgp.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/formats.c b/lib/formats.c index d1773cf..996c5bf 100644 --- a/lib/formats.c +++ b/lib/formats.c @@ -352,7 +352,7 @@ static char * pgpsigFormat(int32_t type, const void * data, if (type != RPM_BIN_TYPE) { val = xstrdup(_("(not a blob)")); } else { - unsigned char * pkt = (uint8_t *) data; + uint8_t * pkt = (uint8_t *) data; unsigned int pktlen = 0; unsigned int v = *pkt; pgpTag tag = 0; diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h index 84b0198..1d6f515 100644 --- a/rpmio/rpmpgp.h +++ b/rpmio/rpmpgp.h @@ -971,10 +971,10 @@ typedef enum rpmDigestFlags_e { * @return native-endian integer */ static inline -unsigned int pgpGrab(const uint8_t *s, int nbytes) +unsigned int pgpGrab(const uint8_t *s, size_t nbytes) { unsigned int i = 0; - int nb = (nbytes <= sizeof(i) ? nbytes : sizeof(i)); + size_t nb = (nbytes <= sizeof(i) ? nbytes : sizeof(i)); while (nb--) i = (i << 8) | *s++; return i; -- 2.7.4