Another big chunk of changes from the RSW branch. Bunch of stuff from main/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2008-08-10 19:35:50 +00:00
parent 3ffb39833b
commit b69c8e6ab5
22 changed files with 372 additions and 372 deletions

View File

@@ -246,18 +246,18 @@ struct ast_ha *ast_duplicate_ha_list(struct ast_ha *original)
{
struct ast_ha *start = original;
struct ast_ha *ret = NULL;
struct ast_ha *link, *prev = NULL;
struct ast_ha *current, *prev = NULL;
while (start) {
link = ast_duplicate_ha(start); /* Create copy of this object */
current = ast_duplicate_ha(start); /* Create copy of this object */
if (prev)
prev->next = link; /* Link previous to this object */
prev->next = current; /* Link previous to this object */
if (!ret)
ret = link; /* Save starting point */
ret = current; /* Save starting point */
start = start->next; /* Go to next object */
prev = link; /* Save pointer to this object */
prev = current; /* Save pointer to this object */
}
return ret; /* Return start of list */
}