[asterisk-commits] trunk r25652 - /trunk/pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 8 09:14:30 MST 2006


Author: rizzo
Date: Mon May  8 11:14:29 2006
New Revision: 25652

URL: http://svn.digium.com/view/asterisk?rev=25652&view=rev
Log:
localize some variables


Modified:
    trunk/pbx.c

Modified: trunk/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx.c?rev=25652&r1=25651&r2=25652&view=diff
==============================================================================
--- trunk/pbx.c (original)
+++ trunk/pbx.c Mon May  8 11:14:29 2006
@@ -1259,7 +1259,7 @@
 	/* Substitutes variables into cp2, based on string cp1, and assuming cp2 to be
 	   zero-filled */
 	whereweare=tmp=cp1;
-	while(!ast_strlen_zero(whereweare) && count) {
+	while (!ast_strlen_zero(whereweare) && count) {
 		/* Assume we're copying the whole remaining string */
 		pos = strlen(whereweare);
 		nextvar = NULL;
@@ -1691,15 +1691,16 @@
 void ast_hint_state_changed(const char *device)
 {
 	struct ast_hint *hint;
-	struct ast_state_cb *cblist;
-	char buf[AST_MAX_EXTENSION];
-	char *parse;
-	char *cur;
-	int state;
 
 	AST_LIST_LOCK(&hints);
 
 	AST_LIST_TRAVERSE(&hints, hint, list) {
+		struct ast_state_cb *cblist;
+		char buf[AST_MAX_EXTENSION];
+		char *parse;
+		char *cur;
+		int state;
+
 		ast_copy_string(buf, ast_get_extension_app(hint->exten), sizeof(buf));
 		parse = buf;
 		for (cur = strsep(&parse, "&"); cur; cur = strsep(&parse, "&")) {



More information about the asterisk-commits mailing list