[Asterisk-cvs] asterisk channel.c,1.152,1.153 pbx.c,1.187,1.188
markster at lists.digium.com
markster at lists.digium.com
Thu Dec 23 10:16:08 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv32222
Modified Files:
channel.c pbx.c
Log Message:
Speed up ast_list macros (bug #3135)
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -d -r1.152 -r1.153
--- channel.c 21 Dec 2004 21:46:58 -0000 1.152
+++ channel.c 23 Dec 2004 15:11:46 -0000 1.153
@@ -641,8 +641,7 @@
/* no need to lock the list, as the channel is already locked */
while (!AST_LIST_EMPTY(headp)) { /* List Deletion. */
- vardata = AST_LIST_FIRST(headp);
- AST_LIST_REMOVE_HEAD(headp, entries);
+ vardata = AST_LIST_REMOVE_HEAD(headp, ast_var_t, entries);
/* printf("deleting var %s=%s\n",ast_var_name(vardata),ast_var_value(vardata)); */
ast_var_delete(vardata);
}
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -d -r1.187 -r1.188
--- pbx.c 23 Dec 2004 02:47:00 -0000 1.187
+++ pbx.c 23 Dec 2004 15:11:46 -0000 1.188
@@ -5123,8 +5123,7 @@
{
struct ast_var_t *vardata;
while (!AST_LIST_EMPTY(&globals)) {
- vardata = AST_LIST_FIRST(&globals);
- AST_LIST_REMOVE_HEAD(&globals, entries);
+ vardata = AST_LIST_REMOVE_HEAD(&globals, ast_var_t, entries);
ast_var_delete(vardata);
}
}
More information about the svn-commits
mailing list