From 65c2eab95598ae7f42cca0d48f6f4b0d8e2ccfb0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 28 Jul 2004 23:37:21 +0000 Subject: (main): int -> bool when appropriate. --- src/chown.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/chown.c b/src/chown.c index 47a8e95f3..9179ac914 100644 --- a/src/chown.c +++ b/src/chown.c @@ -175,7 +175,7 @@ main (int argc, char **argv) int dereference = -1; struct Chown_option chopt; - int fail; + bool ok; int optc; initialize_main (&argc, &argv); @@ -320,7 +320,7 @@ main (int argc, char **argv) optind++; } - if (chopt.recurse && preserve_root) + if (chopt.recurse & preserve_root) { static struct dev_ino dev_ino_buf; chopt.root_dev_ino = get_root_dev_ino (&dev_ino_buf); @@ -329,11 +329,11 @@ main (int argc, char **argv) quote ("/")); } - fail = chown_files (argv + optind, bit_flags, - uid, gid, - required_uid, required_gid, &chopt); + ok = chown_files (argv + optind, bit_flags, + uid, gid, + required_uid, required_gid, &chopt); chopt_free (&chopt); - exit (fail ? EXIT_FAILURE : EXIT_SUCCESS); + exit (ok ? EXIT_SUCCESS : EXIT_FAILURE); } -- cgit v1.2.3-70-g09d2