public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Christine Caulfield <chrissie@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: STABLE3 - config: Change has_childs to has_children
Date: Fri, 04 Sep 2009 07:39:00 -0000	[thread overview]
Message-ID: <20090904073855.975BD120344@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=bebf59e91364f7647ff3d6866df9942570b12398
Commit:        bebf59e91364f7647ff3d6866df9942570b12398
Parent:        b230e89a309c61806b1a21ae8bde672f8d8d9e6b
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Fri Sep 4 08:36:51 2009 +0100
Committer:     Christine Caulfield <ccaulfie@redhat.com>
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 <ccaulfie@redhat.com>
---
 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<current_level; i++) {
 				printf("\t");
 			}
@@ -61,10 +61,10 @@ static int dump_objdb_buff(confdb_handle_t dump_handle, hdb_handle_t cluster_han
 		}
 	}
 
-	if(!has_childs)
+	if(!has_children)
 		printf("/>\n");
 
-	return has_childs;
+	return has_children;
 }
 
 int main(void) {


                 reply	other threads:[~2009-09-04  7:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090904073855.975BD120344@lists.fedorahosted.org \
    --to=chrissie@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).