diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-06 12:41:07 +1100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-02-10 15:40:44 -0800 |
commit | 4689826e391eb83ac639b9afdae641a6e3f34b9a (patch) | |
tree | b6c90c39a8715332ea436ac09e77bd67ae8fd2dc /source3/locking | |
parent | d5506215610f95c161ad45dba00a0b180de3a00b (diff) | |
download | samba-4689826e391eb83ac639b9afdae641a6e3f34b9a.tar.gz |
s3-locking: update to use DLIST_ADD_AFTER()
(cherry picked from commit 6c6df527e14514027cbcaa6deac25adf04363926)
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/posix.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/locking/posix.c b/source3/locking/posix.c index 17945399c5..e6acbe8bac 100644 --- a/source3/locking/posix.c +++ b/source3/locking/posix.c @@ -908,12 +908,8 @@ new: start=%.0f,size=%.0f\n", (double)l_curr->start, (double)l_curr->size, /* * Add into the dlink list after the l_curr point - NOT at lhead. - * Note we can't use DLINK_ADD here as this inserts at the head of the given list. */ - - l_new->prev = l_curr; - l_new->next = l_curr->next; - l_curr->next = l_new; + DLIST_ADD_AFTER(lhead, l_new, l_curr); /* And move after the link we added. */ l_curr = l_new->next; |