The following commit has been merged in the master branch: commit e1ce8e5e0027333a0f3071b9d8bd81b53cbb1011 Author: Guillem Jover <guil...@debian.org> Date: Thu May 20 04:16:55 2010 +0200
dpkg: Reduce scope of variables in audit() diff --git a/src/enquiry.c b/src/enquiry.c index 7f5f046..b41b2be 100644 --- a/src/enquiry.c +++ b/src/enquiry.c @@ -123,10 +123,7 @@ static void describebriefly(struct pkginfo *pkg) { } void audit(const char *const *argv) { - struct pkgiterator *it; - struct pkginfo *pkg; const struct badstatinfo *bsi; - bool head; if (*argv) badusage(_("--%s takes no arguments"), cipaction->olong); @@ -134,7 +131,10 @@ void audit(const char *const *argv) { modstatdb_init(admindir,msdbrw_readonly); for (bsi= badstatinfos; bsi->yesno; bsi++) { - head = false; + struct pkgiterator *it; + struct pkginfo *pkg; + bool head = false; + it= iterpkgstart(); while ((pkg= iterpkgnext(it))) { if (!bsi->yesno(pkg,bsi)) continue; -- dpkg's main repository -- To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org