[Asterisk-cvs] asterisk/pbx pbx_dundi.c, 1.21, 1.22 pbx_loopback.c, 1.1, 1.2

markster at lists.digium.com markster at lists.digium.com
Thu Dec 23 10:16:08 CST 2004


Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv32222/pbx

Modified Files:
	pbx_dundi.c pbx_loopback.c 
Log Message:
Speed up ast_list macros (bug #3135)


Index: pbx_dundi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_dundi.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- pbx_dundi.c	19 Dec 2004 17:33:19 -0000	1.21
+++ pbx_dundi.c	23 Dec 2004 15:11:46 -0000	1.22
@@ -551,8 +551,7 @@
 				AST_LIST_INSERT_HEAD(&headp, newvariable, entries);
 				pbx_substitute_variables_varshead(&headp, map->dest, dr[anscnt].dest, sizeof(dr[anscnt].dest));
 				while (!AST_LIST_EMPTY(&headp)) {           /* List Deletion. */
-					newvariable = AST_LIST_FIRST(&headp);
-					AST_LIST_REMOVE_HEAD(&headp, entries);
+					newvariable = AST_LIST_REMOVE_HEAD(&headp, ast_var_t, entries);
 					ast_var_delete(newvariable);
 				}
 			} else

Index: pbx_loopback.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_loopback.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- pbx_loopback.c	24 Oct 2004 03:14:44 -0000	1.1
+++ pbx_loopback.c	23 Dec 2004 15:11:46 -0000	1.2
@@ -81,8 +81,7 @@
 	pbx_substitute_variables_varshead(&headp, data, buf, buflen);
 	/* Substitute variables */
 	while (!AST_LIST_EMPTY(&headp)) {           /* List Deletion. */
-		newvariable = AST_LIST_FIRST(&headp);
-		AST_LIST_REMOVE_HEAD(&headp, entries);
+		newvariable = AST_LIST_REMOVE_HEAD(&headp, ast_var_t, entries);
 		ast_var_delete(newvariable);
 	}
 	return buf;




More information about the svn-commits mailing list