diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2012-10-09 18:55:09 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2012-10-09 18:55:09 -0500 |
commit | b68d4b3580b6c3b38712e415ac5b874228103cd1 (patch) | |
tree | 0bcc968b10bafd4465cfc689a10fd506a6c480de /src | |
parent | 6f345abe91a57ab64a447b20b3c701d14f23ef69 (diff) |
checkpath: fix bool values
Use true/false for bool values instead of 0/1.
Reported-by: <vapier@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/checkpath.c | 10 |
1 files 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); |