summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-07 11:49:25 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-07 11:49:25 +0300
commit25d5968063683cb4f1059b23a83561e8dd399f9b (patch)
tree066c469f0faab0e24431c7e1ebdfc1324a9885fc /build
parentba3a270fb5f830b75031652018cc7b4ffe26ed38 (diff)
downloadlibrpm-tizen-25d5968063683cb4f1059b23a83561e8dd399f9b.tar.gz
librpm-tizen-25d5968063683cb4f1059b23a83561e8dd399f9b.tar.bz2
librpm-tizen-25d5968063683cb4f1059b23a83561e8dd399f9b.zip
Eliminate unused counter variable
Diffstat (limited to 'build')
-rw-r--r--build/rpmfc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/rpmfc.c b/build/rpmfc.c
index 9a358074f..c47b160be 100644
--- a/build/rpmfc.c
+++ b/build/rpmfc.c
@@ -1535,7 +1535,6 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg)
const char * N;
const char * EVR;
int genConfigDeps;
- rpm_count_t c;
int rc = RPMRC_OK;
int xx;
int idx;
@@ -1688,7 +1687,7 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg)
}
/* Add Provides: */
- if (fc->provides != NULL && (c = rpmdsCount(fc->provides)) > 0 && !fc->skipProv) {
+ if (fc->provides != NULL && rpmdsCount(fc->provides) > 0 && !fc->skipProv) {
rpmds pi = rpmdsInit(fc->provides);
while (rpmdsNext(pi) >= 0) {
const char *name = rpmdsN(pi);
@@ -1702,7 +1701,7 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg)
}
/* Add Requires: */
- if (fc->requires != NULL && (c = rpmdsCount(fc->requires)) > 0 && !fc->skipReq) {
+ if (fc->requires != NULL && rpmdsCount(fc->requires) > 0 && !fc->skipReq) {
rpmds pi = rpmdsInit(fc->requires);
while (rpmdsNext(pi) >= 0) {
const char *name = rpmdsN(pi);