From 68d4b87e8a71335f11ebab703effd972c36631a6 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 17 Dec 2007 10:32:16 +0200 Subject: Unbreak internal dep generator - more signed -> unsigned count type breakage --- build/rpmfc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build') diff --git a/build/rpmfc.c b/build/rpmfc.c index bc69ac303..da0b23346 100644 --- a/build/rpmfc.c +++ b/build/rpmfc.c @@ -1532,6 +1532,7 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg) rpm_count_t c; int rc = 0; int xx; + int idx; /* Skip packages with no files. */ if (ac <= 0) @@ -1556,15 +1557,15 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg) genConfigDeps = 0; fi = rpmfiInit(fi, 0); if (fi != NULL) - while ((c = rpmfiNext(fi)) >= 0) { + while ((idx = rpmfiNext(fi)) >= 0) { rpmfileAttrs fileAttrs; /* Does package have any %config files? */ fileAttrs = rpmfiFFlags(fi); genConfigDeps |= (fileAttrs & RPMFILE_CONFIG); - av[c] = xstrdup(rpmfiFN(fi)); - fmode[c] = rpmfiFMode(fi); + av[idx] = xstrdup(rpmfiFN(fi)); + fmode[idx] = rpmfiFMode(fi); } av[ac] = NULL; -- cgit v1.2.3