[asterisk-commits] rbrindley: trunk r158070 - /trunk/main/config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 20 11:46:56 CST 2008


Author: rbrindley
Date: Thu Nov 20 11:46:56 2008
New Revision: 158070

URL: http://svn.digium.com/view/asterisk?view=rev&rev=158070
Log:
formatting changes :: one line for loops and if statements should have {}

Modified:
    trunk/main/config.c

Modified: trunk/main/config.c
URL: http://svn.digium.com/view/asterisk/trunk/main/config.c?view=diff&rev=158070&r1=158069&r2=158070
==============================================================================
--- trunk/main/config.c (original)
+++ trunk/main/config.c Thu Nov 20 11:46:56 2008
@@ -420,10 +420,13 @@
 	} else {
 		struct ast_category *cat;
 
-		for (cat = config->root; cat; cat = cat->next)
-			for (v = cat->root; v; v = v->next)
-				if (!strcasecmp(variable, v->name))
+		for (cat = config->root; cat; cat = cat->next) {
+			for (v = cat->root; v; v = v->next) {
+				if (!strcasecmp(variable, v->name)) {
 					return v->value;
+				}
+			}
+		}
 	}
 
 	return NULL;




More information about the asterisk-commits mailing list