From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 05424138010 for ; Tue, 9 Oct 2012 23:56:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3169DE043A; Tue, 9 Oct 2012 23:56:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id AE952E043A for ; Tue, 9 Oct 2012 23:56:39 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E32D33D83D for ; Tue, 9 Oct 2012 23:56:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 8FBBDE5436 for ; Tue, 9 Oct 2012 23:56:36 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1349826909.b68d4b3580b6c3b38712e415ac5b874228103cd1.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/checkpath.c X-VCS-Directories: src/rc/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: b68d4b3580b6c3b38712e415ac5b874228103cd1 X-VCS-Branch: master Date: Tue, 9 Oct 2012 23:56:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9c949054-7abc-4247-ac9b-6c4fd1b00f10 X-Archives-Hash: e553356e73c40e8bf05bdfd670cada6b commit: b68d4b3580b6c3b38712e415ac5b874228103cd1 Author: William Hubbs gmail com> AuthorDate: Tue Oct 9 23:55:09 2012 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Oct 9 23:55:09 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=b68d4b35 checkpath: fix bool values Use true/false for bool values instead of 0/1. Reported-by: gentoo.org> --- 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 f984da3..518d237 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);