diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-17 10:32:16 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-17 10:32:16 +0200 |
commit | 68d4b87e8a71335f11ebab703effd972c36631a6 (patch) | |
tree | 4a4dec564d54935a9858d0a0b774c4ba916f8a25 /build | |
parent | 4671a35bbcac3097259657a1425ece1d3fe22ba1 (diff) | |
download | rpm-68d4b87e8a71335f11ebab703effd972c36631a6.tar.gz rpm-68d4b87e8a71335f11ebab703effd972c36631a6.tar.bz2 rpm-68d4b87e8a71335f11ebab703effd972c36631a6.zip |
Unbreak internal dep generator
- more signed -> unsigned count type breakage
Diffstat (limited to 'build')
-rw-r--r-- | build/rpmfc.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; |