diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2005-12-17 01:07:44 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2005-12-17 01:07:44 +0000 |
commit | 6350e25aa7af74831ea593ee239ab72e2608e9ef (patch) | |
tree | 50a2e5594804825bb81e75d6bde93f2eab32ab28 /include | |
parent | eea40f2025b03dd6944f53dac66b39a8f04aa505 (diff) |
Merged revisions 7508 via svnmerge from
/branches/1.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/linkedlists.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h index 8dbd5dd5c..ef54ed444 100644 --- a/include/asterisk/linkedlists.h +++ b/include/asterisk/linkedlists.h @@ -381,7 +381,8 @@ struct { \ used to link entries of this list together. Note: The link field in the appended entry is \b not modified, so if it is - actually the head of a list itself, the entire list will be appended. + actually the head of a list itself, the entire list will be appended + temporarily (until the next AST_LIST_INSERT_TAIL is performed). */ #define AST_LIST_INSERT_TAIL(head, elm, field) do { \ if (!(head)->first) { \ @@ -431,7 +432,7 @@ struct { \ while (curelm->field.next != (elm)) \ curelm = curelm->field.next; \ curelm->field.next = (elm)->field.next; \ - if ((head)->last == curelm->field.next) \ + if ((head)->last == (elm)) \ (head)->last = curelm; \ } \ } while (0) |