summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-03-10 13:38:26 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-03-10 13:38:26 +0200
commitde00e073c83644976127ae271c476fba46e66596 (patch)
tree282a8ff5dcadca569f1969ce5c16ec74a7480b0a /lib
parenta526d10e4f84178a7a6fa6b8cbb384aa88c9b16f (diff)
downloadlibrpm-tizen-de00e073c83644976127ae271c476fba46e66596.tar.gz
librpm-tizen-de00e073c83644976127ae271c476fba46e66596.tar.bz2
librpm-tizen-de00e073c83644976127ae271c476fba46e66596.zip
Eliminate Yet Another temporary result variable
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmchecksig.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rpmchecksig.c b/lib/rpmchecksig.c
index 118845202..f175791dc 100644
--- a/lib/rpmchecksig.c
+++ b/lib/rpmchecksig.c
@@ -593,7 +593,7 @@ int rpmVerifySignatures(QVA_t qva, rpmts ts, FD_t fd,
char * msg = NULL;
int res = 1; /* assume failure */
int xx;
- rpmRC rc, sigres;
+ rpmRC rc;
int failed = 0;
int nodigests = !(qva->qva_flags & VERIFY_DIGEST);
int nosignatures = !(qva->qva_flags & VERIFY_SIGNATURE);
@@ -731,13 +731,13 @@ int rpmVerifySignatures(QVA_t qva, rpmts ts, FD_t fd,
break;
}
- sigres = rpmVerifySignature(keyring, &sigtd, dig, &result);
- formatResult(sigtd.tag, sigres, result, havekey,
- (sigres == RPMRC_NOKEY ? &missingKeys : &untrustedKeys),
+ rc = rpmVerifySignature(keyring, &sigtd, dig, &result);
+ formatResult(sigtd.tag, rc, result, havekey,
+ (rc == RPMRC_NOKEY ? &missingKeys : &untrustedKeys),
&buf);
free(result);
- if (sigres != RPMRC_OK) {
+ if (rc != RPMRC_OK) {
failed = 1;
}