diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-30 04:28:47 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-30 04:28:47 +0000 |
commit | 7c173e8b7dcbb7ae8f1412f2f434cc289b28a62f (patch) | |
tree | 93e2c3c9ae4ca9e113cdb1a49eca7cb93c3a47ae /pbx/pbx_dundi.c | |
parent | d4a3a827cbff56e352f709d4e7414ff2401a906e (diff) |
change a list traversal to use a for loop
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23466 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_dundi.c')
-rw-r--r-- | 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 b80e9995b..00c04ab1c 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -4199,7 +4199,7 @@ static void build_peer(dundi_eid *eid, struct ast_variable *v, int *globalpcmode if (peer->registerid > -1) ast_sched_del(sched, peer->registerid); peer->registerid = -1; - while(v) { + for (; v; v = v->next) { if (!strcasecmp(v->name, "inkey")) { ast_copy_string(peer->inkey, v->value, sizeof(peer->inkey)); } else if (!strcasecmp(v->name, "outkey")) { @@ -4281,7 +4281,6 @@ static void build_peer(dundi_eid *eid, struct ast_variable *v, int *globalpcmode v->value, v->lineno); } } - v = v->next; } (*globalpcmode) |= peer->pcmodel; if (!peer->model && !peer->pcmodel) { |