projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04422e4
)
Eliminate unused variable + calculations in pgpPubkeyFingerprint()
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 3 Mar 2011 13:32:24 +0000
(15:32 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 3 Mar 2011 13:32:24 +0000
(15:32 +0200)
rpmio/rpmpgp.c
patch
|
blob
|
history
diff --git
a/rpmio/rpmpgp.c
b/rpmio/rpmpgp.c
index
9e0fb27
..
8b7442d
100644
(file)
--- 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);
}