summaryrefslogtreecommitdiff
path: root/pbx/pbx_dundi.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-12-23 15:11:46 +0000
committerMark Spencer <markster@digium.com>2004-12-23 15:11:46 +0000
commitcecda3fb6797ca6e3da8ff1fd3fe6e79c3b23719 (patch)
treeeadb7c681e0fecd6f7d64f2cfe5c72dedc2cd7c3 /pbx/pbx_dundi.c
parentb9c3f3567a0ff290f3db52087c6d6737480e5f7c (diff)
Speed up ast_list macros (bug #3135)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_dundi.c')
-rwxr-xr-xpbx/pbx_dundi.c3
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