diff options
author | Guillem Jover <guillem@debian.org> | 2010-05-17 15:04:49 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2010-05-19 08:32:12 +0200 |
commit | 7eb30624a0b7955924bafd9466d226f70e5cf48f (patch) | |
tree | ae34a67fb5fbe6abd391a1919764c6df8e4de33a /src/enquiry.c | |
parent | 07adb5686f5fec694e6bfea82b8b5ad2fcdf416c (diff) | |
download | dpkg-7eb30624a0b7955924bafd9466d226f70e5cf48f.tar.gz |
Use bool instead of int wherever appropriate
Diffstat (limited to 'src/enquiry.c')
-rw-r--r-- | src/enquiry.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/enquiry.c b/src/enquiry.c index 6441082ec..7f5f046f2 100644 --- a/src/enquiry.c +++ b/src/enquiry.c @@ -126,7 +126,7 @@ void audit(const char *const *argv) { struct pkgiterator *it; struct pkginfo *pkg; const struct badstatinfo *bsi; - int head; + bool head; if (*argv) badusage(_("--%s takes no arguments"), cipaction->olong); @@ -134,13 +134,13 @@ void audit(const char *const *argv) { modstatdb_init(admindir,msdbrw_readonly); for (bsi= badstatinfos; bsi->yesno; bsi++) { - head= 0; + head = false; it= iterpkgstart(); while ((pkg= iterpkgnext(it))) { if (!bsi->yesno(pkg,bsi)) continue; if (!head) { fputs(gettext(bsi->explanation),stdout); - head= 1; + head = true; } describebriefly(pkg); } @@ -340,7 +340,7 @@ void predeppackage(const char *const *argv) { pkg->clientdata->istobe= itb_preinstall; for (dep= pkg->available.depends; dep; dep= dep->next) { if (dep->type != dep_predepends) continue; - if (depisok(dep, &vb, NULL, 1)) + if (depisok(dep, &vb, NULL, true)) continue; break; /* This will leave dep non-NULL, and so exit the loop. */ } @@ -389,7 +389,7 @@ void predeppackage(const char *const *argv) { pkg->clientdata->istobe= itb_preinstall; for (dep= pkg->available.depends; dep; dep= dep->next) { if (dep->type != dep_predepends) continue; - if (depisok(dep, &vb, NULL, 1)) + if (depisok(dep, &vb, NULL, true)) continue; break; /* This will leave dep non-NULL, and so exit the loop. */ } |