git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32575ed
)
s4-dsdb: update repl_meta_data.c to use new DLIST_ macros
author
Jeremy Allison
<jra@samba.org>
Wed, 10 Feb 2010 23:35:38 +0000
(15:35 -0800)
committer
Jeremy Allison
<jra@samba.org>
Wed, 10 Feb 2010 23:35:38 +0000
(15:35 -0800)
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index 15c940f8429375d17d17c35d8dc414a3b1068853..e64d51aad0c22b2313a325f9d689c4bc510b7a0a 100644
(file)
--- 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) {