From 4689826e391eb83ac639b9afdae641a6e3f34b9a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 6 Feb 2010 12:41:07 +1100 Subject: s3-locking: update to use DLIST_ADD_AFTER() (cherry picked from commit 6c6df527e14514027cbcaa6deac25adf04363926) --- source3/locking/posix.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source3/locking') 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; -- cgit