diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-23 15:11:46 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-23 15:11:46 +0000 |
commit | 8f2fabe64f24fdfd17dcc34773bdb2adb1ef1b7e (patch) | |
tree | eadb7c681e0fecd6f7d64f2cfe5c72dedc2cd7c3 /pbx/pbx_dundi.c | |
parent | bda9898fe134a95231748b1419ad951f413aaf08 (diff) |
Speed up ast_list macros (bug #3135)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4546 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_dundi.c')
-rwxr-xr-x | pbx/pbx_dundi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 602d05605..d0cab9c7d 100755 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -551,8 +551,7 @@ static int dundi_lookup_local(struct dundi_result *dr, struct dundi_mapping *map 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 |