From 0c8401abff5eef9d94ae9f124a7ccf639b12acbd Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 14 Dec 2007 12:54:35 +0200 Subject: Yet more type-pedantry... - use rpm_tag_t for signature tag types too - size_t, not rpm_count_t in signature generation - add couple of explicit casts to rpmpgp.h to avoid spurious noise from inlined functions --- rpmio/rpmpgp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpmio') diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h index 30e3b9b3f..7730b6d56 100644 --- a/rpmio/rpmpgp.h +++ b/rpmio/rpmpgp.h @@ -999,7 +999,7 @@ size_t pgpLen(const uint8_t *s, size_t * lenp) (*lenp) = ((((unsigned)s[0]) - 192) << 8) + s[1] + 192; return 2; } else { - (*lenp) = pgpGrab(s+1, 4); + (*lenp) = pgpGrab(s+1, (size_t) 4); return 5; } } @@ -1074,7 +1074,7 @@ const char * pgpMpiStr(const uint8_t *p) { static char prbuf[8*BUFSIZ]; /* XXX ick */ char *t = prbuf; - sprintf(t, "[%4u]: ", pgpGrab(p, 2)); + sprintf(t, "[%4u]: ", pgpGrab(p, (size_t) 2)); t += strlen(t); t = pgpHexCvt(t, p+2, pgpMpiLen(p)-2); return prbuf; -- cgit v1.2.3