[svn-commits] mvanbaak: branch group/appdocsxml r128334 - /team/group/appdocsxml/main/pbx.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Jul 5 18:12:57 CDT 2008


Author: mvanbaak
Date: Sat Jul  5 18:12:57 2008
New Revision: 128334

URL: http://svn.digium.com/view/asterisk?view=rev&rev=128334
Log:
make this compatible with CODE_GUIDELINES

Modified:
    team/group/appdocsxml/main/pbx.c

Modified: team/group/appdocsxml/main/pbx.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/main/pbx.c?view=diff&rev=128334&r1=128333&r2=128334
==============================================================================
--- team/group/appdocsxml/main/pbx.c (original)
+++ team/group/appdocsxml/main/pbx.c Sat Jul  5 18:12:57 2008
@@ -4346,7 +4346,7 @@
 
 	documentation_tree = mxmlLoadFile(NULL, xmldoc, MXML_OPAQUE_CALLBACK);
 
-	if(!documentation_tree) {
+	if (!documentation_tree) {
 		ast_log(LOG_ERROR, "Parsing Problem with Documentation Tree\n");
 	}
 
@@ -4370,7 +4370,7 @@
 	node = desc = syn = lang_node = NULL;
 
 	/* XXX If we do not have documentation, should we still register the application? */
-	if(!documentation_tree) {
+	if (!documentation_tree) {
 		ast_log(LOG_WARNING, "Cannot get description or synopsis for application, loading XML documentation failed.\n");
 		return -1;
 	}
@@ -4395,7 +4395,7 @@
 	strapp = ast_strdup(app);
 	node = mxmlFindElement(documentation_tree, documentation_tree, "application", "name", strapp, MXML_DESCEND);
 
-	if(!node) {
+	if (!node) {
 		ast_log(LOG_WARNING, "Cannot find Application Documentation for app: '%s'\n", app);
 		return -1;
 	}
@@ -4404,17 +4404,16 @@
 	lang_node = mxmlFindElement(node, documentation_tree, "application", "language", documentation_language, MXML_DESCEND);	
 
 	/* Could not find language, use the default one without a language */
-	if(!lang_node) 
+	if (!lang_node) {
 		lang_node = node;
+	}
 
 	syn = mxmlFindElement(lang_node, documentation_tree, "synopsis", NULL, NULL, MXML_DESCEND);
 	desc = mxmlFindElement(lang_node, documentation_tree, "description", NULL, NULL, MXML_DESCEND);
     
-	if(!syn || !desc || !syn->child || !desc->child) {
-
+	if (!syn || !desc || !syn->child || !desc->child) {
 		ast_log(LOG_WARNING, "Cannot find Application description or synopsis for app: '%s'\n", app);
 		return -1;
-
 	}
 
 	strcpy(tmp->name, app);
@@ -4441,7 +4440,6 @@
 
 	return 0;
 }
-
 
 /*
  * Append to the list. We don't have a tail pointer because we need




More information about the svn-commits mailing list