summaryrefslogtreecommitdiff
path: root/lib/rpmrc.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-03-04 13:11:22 +0200
committerPanu Matilainen <pmatilai@redhat.com>2011-03-04 13:11:22 +0200
commitcf04f4400f960d425f9009b089a4b735b4e8e1a2 (patch)
treea7bf2ada03f2ed5d82699768f16ff00c78da5d4a /lib/rpmrc.c
parentddc47f4cfe03b61f841f45d796cc800f51735ca6 (diff)
downloadlibrpm-tizen-cf04f4400f960d425f9009b089a4b735b4e8e1a2.tar.gz
librpm-tizen-cf04f4400f960d425f9009b089a4b735b4e8e1a2.tar.bz2
librpm-tizen-cf04f4400f960d425f9009b089a4b735b4e8e1a2.zip
Eliminate pointless xx unused error code variable in rpmShowRC()
- An error here from rpmdsRpmlib() would be very much a "can't happen" situtation, and there's no point handling it in any special way, the loop will silently fall through anyway.
Diffstat (limited to 'lib/rpmrc.c')
-rw-r--r--lib/rpmrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index 1b47dc3ad..7882af2a6 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -1646,7 +1646,7 @@ int rpmShowRC(FILE * fp)
{
const struct rpmOption *opt;
rpmds ds = NULL;
- int i, xx;
+ int i;
machEquivTable equivTable;
/* the caller may set the build arch which should be printed here */
@@ -1694,7 +1694,7 @@ int rpmShowRC(FILE * fp)
fprintf(fp, "\n");
fprintf(fp, "Features supported by rpmlib:\n");
- xx = rpmdsRpmlib(&ds, NULL);
+ rpmdsRpmlib(&ds, NULL);
ds = rpmdsInit(ds);
while (rpmdsNext(ds) >= 0) {
const char * DNEVR = rpmdsDNEVR(ds);