public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - config: Change has_childs to has_children
@ 2009-09-04  7:39 Christine Caulfield
  0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2009-09-04  7:39 UTC (permalink / raw)
  To: cluster-cvs-relay

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) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-04  7:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-04  7:39 cluster: STABLE3 - config: Change has_childs to has_children Christine Caulfield

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).