summaryrefslogtreecommitdiff
path: root/rpmio/rpmpgp.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-03-03 15:32:24 +0200
committerPanu Matilainen <pmatilai@redhat.com>2011-03-03 15:32:24 +0200
commit8a95213b500cc3bd1e52e9b6a1c3430edbc4a552 (patch)
tree6b0f263ba5b14d8ea4484ab3864e3328e135c4a9 /rpmio/rpmpgp.c
parent04422e4ca85e1748e97cd7d49cad5e9c03f9e05f (diff)
downloadlibrpm-tizen-8a95213b500cc3bd1e52e9b6a1c3430edbc4a552.tar.gz
librpm-tizen-8a95213b500cc3bd1e52e9b6a1c3430edbc4a552.tar.bz2
librpm-tizen-8a95213b500cc3bd1e52e9b6a1c3430edbc4a552.zip
Eliminate unused variable + calculations in pgpPubkeyFingerprint()
Diffstat (limited to 'rpmio/rpmpgp.c')
-rw-r--r--rpmio/rpmpgp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c
index 9e0fb2784..8b7442de8 100644
--- a/rpmio/rpmpgp.c
+++ b/rpmio/rpmpgp.c
@@ -1077,7 +1077,6 @@ int pgpPubkeyFingerprint(const uint8_t * pkt, size_t pktlen, pgpKeyID_t keyid)
{
unsigned int val = *pkt;
size_t plen, hlen;
- pgpTag tag;
const uint8_t *se, *h;
DIGEST_CTX ctx;
int rc = -1; /* assume failure. */
@@ -1086,10 +1085,8 @@ int pgpPubkeyFingerprint(const uint8_t * pkt, size_t pktlen, pgpKeyID_t keyid)
return rc;
if (val & 0x40) {
- tag = (val & 0x3f);
plen = pgpLen(pkt+1, &hlen);
} else {
- tag = (val >> 2) & 0xf;
plen = (1 << (val & 0x3));
hlen = pgpGrab(pkt+1, plen);
}