From b68d4b3580b6c3b38712e415ac5b874228103cd1 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 9 Oct 2012 18:55:09 -0500 Subject: checkpath: fix bool values Use true/false for bool values instead of 0/1. Reported-by: --- src/rc/checkpath.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c index f984da32..518d2373 100644 --- a/src/rc/checkpath.c +++ b/src/rc/checkpath.c @@ -223,20 +223,20 @@ checkpath(int argc, char **argv) struct group *gr = NULL; inode_t type = inode_unknown; int retval = EXIT_SUCCESS; - bool trunc = 0; - bool chowner = 0; + bool trunc = false; + bool chowner = false; while ((opt = getopt_long(argc, argv, getoptstring, longopts, (int *) 0)) != -1) { switch (opt) { case 'D': - trunc = 1; + trunc = true; case 'd': type = inode_dir; break; case 'F': - trunc = 1; + trunc = true; case 'f': type = inode_file; break; @@ -249,7 +249,7 @@ checkpath(int argc, char **argv) applet, optarg); break; case 'o': - chowner = 1; + chowner = true; if (parse_owner(&pw, &gr, optarg) != 0) eerrorx("%s: owner `%s' not found", applet, optarg); -- cgit v1.2.3