summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-02-10 15:35:38 -0800
committerJeremy Allison <jra@samba.org>2010-02-10 15:35:38 -0800
commitf017edc59f06121db08dcbdfaa0b75b808560955 (patch)
tree4837d0ccd37d5d63e34ad8d6bffbac3b818ccb96 /source4/dsdb
parent32575ed70f3210a2fe10edfd801ad1cb8f5caffa (diff)
downloadsamba-f017edc59f06121db08dcbdfaa0b75b808560955.tar.gz
samba-f017edc59f06121db08dcbdfaa0b75b808560955.tar.bz2
samba-f017edc59f06121db08dcbdfaa0b75b808560955.zip
s4-dsdb: update repl_meta_data.c to use new DLIST_ macros
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index 15c940f842..e64d51aad0 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -3783,10 +3783,9 @@ static int replmd_prepare_commit(struct ldb_module *module)
/* walk the list backwards, to do the first entry first, as we
* added the entries with DLIST_ADD() which puts them at the
* start of the list */
- for (la = replmd_private->la_list; la && la->next; la=la->next) ;
-
+ DLIST_TAIL(replmd_private->la_list,la);
for (; la; la=prev) {
- prev = la->prev;
+ prev = DLIST_PREV(la);
DLIST_REMOVE(replmd_private->la_list, la);
ret = replmd_process_linked_attribute(module, la);
if (ret != LDB_SUCCESS) {