From 25d5968063683cb4f1059b23a83561e8dd399f9b Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 7 Sep 2009 11:49:25 +0300 Subject: Eliminate unused counter variable --- build/rpmfc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'build') 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); -- cgit v1.2.3