[svn-commits] pari: trunk r156018 - /trunk/main/manager.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 11 17:32:31 CST 2008


Author: pari
Date: Tue Nov 11 17:32:31 2008
New Revision: 156018

URL: http://svn.digium.com/view/asterisk?view=rev&rev=156018
Log:

 changing comment style to conform coding guidelines


Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=156018&r1=156017&r2=156018
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Tue Nov 11 17:32:31 2008
@@ -1287,17 +1287,17 @@
 	struct ast_str *str1 = ast_str_create(16), *str2 = ast_str_create(16);
 	enum error_type result = 0;
 
-	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 */
 			result =  UNSPECIFIED_CATEGORY;
 			break;
 		}
@@ -1320,8 +1320,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
-				result = FAILURE_NEWCAT;	//already exist
+			if (ast_category_get(cfg,cat)) {	/* check to make sure the cat doesn't */
+				result = FAILURE_NEWCAT;	/* already exist */
 				break;
 			}
 			if (!(category = ast_category_new(cat, dfn, -1))) {




More information about the svn-commits mailing list