diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-14 12:54:35 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-14 12:54:35 +0200 |
commit | 0c8401abff5eef9d94ae9f124a7ccf639b12acbd (patch) | |
tree | 340e55157d6f4fb2f36724d936873e847b6b2574 /rpmio | |
parent | 8946859700432de2f8462b672a7d3d3790b09a76 (diff) | |
download | rpm-0c8401abff5eef9d94ae9f124a7ccf639b12acbd.tar.gz rpm-0c8401abff5eef9d94ae9f124a7ccf639b12acbd.tar.bz2 rpm-0c8401abff5eef9d94ae9f124a7ccf639b12acbd.zip |
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
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmpgp.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |