[asterisk-commits] bkruse: branch 1.6.0 r156653 - /branches/1.6.0/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 13 13:26:21 CST 2008


Author: bkruse
Date: Thu Nov 13 13:26:21 2008
New Revision: 156653

URL: http://svn.digium.com/view/asterisk?view=rev&rev=156653
Log:
Update to Coding Guidelines

Modified:
    branches/1.6.0/main/manager.c

Modified: branches/1.6.0/main/manager.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/main/manager.c?view=diff&rev=156653&r1=156652&r2=156653
==============================================================================
--- branches/1.6.0/main/manager.c (original)
+++ branches/1.6.0/main/manager.c Thu Nov 13 13:26:21 2008
@@ -1245,17 +1245,17 @@
 	struct ast_category *category;
 	struct ast_variable *v;
 
-	for (x = 0; x < 100000; x++) {	//100000 = the max number of allowed updates + 1
+	for (x = 0; x < 100000; x++) {	/* 100000 = the max number of allowed updates + 1 */
 		unsigned int object = 0;
 
 		snprintf(hdr, sizeof(hdr), "Action-%06d", x);
 		action = astman_get_header(m, hdr);
-		if (ast_strlen_zero(action))		// breaks the for loop if no action header
-			break;				// this could cause problems if actions come in misnumbered
+		if (ast_strlen_zero(action))		/* breaks the for loop if no action header */
+			break;				/* this could cause problems if actions come in misnumbered */
 
 		snprintf(hdr, sizeof(hdr), "Cat-%06d", x);
 		cat = astman_get_header(m, hdr);
-		if (ast_strlen_zero(cat))		//every action needs a category
+		if (ast_strlen_zero(cat))		/* every action needs a category */
 			return UNSPECIFIED_CATEGORY;
 
 		snprintf(hdr, sizeof(hdr), "Var-%06d", x);
@@ -1275,8 +1275,8 @@
 		line = astman_get_header(m, hdr);
 
 		if (!strcasecmp(action, "newcat")) {
-			if (ast_category_get(cfg,cat))	//check to make sure the cat doesn't
-				return FAILURE_NEWCAT;	//already exist
+			if (ast_category_get(cfg,cat))		/* check to make sure the cat doesn't */
+				return FAILURE_NEWCAT;		/* already exist */
 			if (!(category = ast_category_new(cat, dfn, -1)))
 				return FAILURE_ALLOCATION;
 			if (ast_strlen_zero(match)) {




More information about the asterisk-commits mailing list