1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3-locking: update to use DLIST_ADD_AFTER()

(cherry picked from commit 6c6df527e14514027cbcaa6deac25adf04363926)
This commit is contained in:
Andrew Tridgell 2010-02-06 12:41:07 +11:00 committed by Jeremy Allison
parent d550621561
commit 4689826e39

View File

@ -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;