From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9232 invoked by alias); 4 Sep 2009 07:39:21 -0000 Received: (qmail 9225 invoked by alias); 4 Sep 2009 07:39:21 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion2.fedora.phx.redhat.com Subject: cluster: STABLE3 - config: Change has_childs to has_children To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: b230e89a309c61806b1a21ae8bde672f8d8d9e6b X-Git-Newrev: bebf59e91364f7647ff3d6866df9942570b12398 From: Christine Caulfield Message-Id: <20090904073855.975BD120344@lists.fedorahosted.org> Date: Fri, 04 Sep 2009 07:39:00 -0000 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00307.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=bebf59e91364f7647ff3d6866df9942570b12398 Commit: bebf59e91364f7647ff3d6866df9942570b12398 Parent: b230e89a309c61806b1a21ae8bde672f8d8d9e6b Author: Christine Caulfield AuthorDate: Fri Sep 4 08:36:51 2009 +0100 Committer: Christine Caulfield CommitterDate: Fri Sep 4 08:36:51 2009 +0100 config: Change has_childs to has_children Some people get upset by 'wrong' indentation, others by inappropriately capitalised variable names, some by long line lengths. I don't worry about any of those, but I do *really* dislike incorrect English! Signed-off-by: Christine Caulfield --- config/tools/xml/ccs_config_dump.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/tools/xml/ccs_config_dump.c b/config/tools/xml/ccs_config_dump.c index a5ddf50..8525f31 100644 --- a/config/tools/xml/ccs_config_dump.c +++ b/config/tools/xml/ccs_config_dump.c @@ -12,7 +12,7 @@ static int dump_objdb_buff(confdb_handle_t dump_handle, hdb_handle_t cluster_han char object_name[PATH_MAX], key_name[PATH_MAX], key_value[PATH_MAX]; size_t key_value_len = 0, key_name_len = 0, object_name_len = 0; int current_level = level+1; - int has_childs = 0; + int has_children = 0; if (confdb_key_iter_start(dump_handle, parent_object_handle) != CS_OK) return -1; @@ -33,12 +33,12 @@ static int dump_objdb_buff(confdb_handle_t dump_handle, hdb_handle_t cluster_han &object_name_len) == CS_OK) { hdb_handle_t parent; int i; - int found_childs; + int found_children; - if ((!has_childs) && (parent_object_handle > 0)) + if ((!has_children) && (parent_object_handle > 0)) printf(">\n"); - has_childs = 1; + has_children = 1; if (confdb_object_parent_get(dump_handle, object_handle, &parent) != CS_OK) return -1; @@ -49,11 +49,11 @@ static int dump_objdb_buff(confdb_handle_t dump_handle, hdb_handle_t cluster_han } printf("<%s", object_name); - found_childs = dump_objdb_buff(dump_handle, cluster_handle, object_handle, current_level); - if (found_childs < 0) + found_children = dump_objdb_buff(dump_handle, cluster_handle, object_handle, current_level); + if (found_children < 0) return -1; - if ((object_handle != parent_object_handle) && (found_childs)) { + if ((object_handle != parent_object_handle) && (found_children)) { for (i=0; i\n"); - return has_childs; + return has_children; } int main(void) {