diff options
author | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2009-09-14 11:46:59 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-19 15:42:00 -0700 |
commit | 0b68967096b77909c2b83e178f7b20396e1e4c1e (patch) | |
tree | a77b94046838da6e8f8b1a84f7c8c5615703bf71 /source4/dsdb/samdb | |
parent | 6e56261eb7d417b488da2d3b051fb8284abb3fbd (diff) | |
download | samba-0b68967096b77909c2b83e178f7b20396e1e4c1e.tar.gz samba-0b68967096b77909c2b83e178f7b20396e1e4c1e.tar.bz2 samba-0b68967096b77909c2b83e178f7b20396e1e4c1e.zip |
Move replmd_drsuapi_DsReplicaCursor2_compare to a common place.
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 283bdf7806..fa8bd64bf2 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -1543,12 +1543,6 @@ static int replmd_replicated_uptodate_modify_callback(struct ldb_request *req, return ldb_module_done(ar->req, NULL, NULL, LDB_SUCCESS); } -static int replmd_drsuapi_DsReplicaCursor2_compare(const struct drsuapi_DsReplicaCursor2 *c1, - const struct drsuapi_DsReplicaCursor2 *c2) -{ - return GUID_compare(&c1->source_dsa_invocation_id, &c2->source_dsa_invocation_id); -} - static int replmd_replicated_uptodate_modify(struct replmd_replicated_request *ar) { struct ldb_context *ldb; @@ -1703,7 +1697,7 @@ static int replmd_replicated_uptodate_modify(struct replmd_replicated_request *a */ qsort(nuv.ctr.ctr2.cursors, nuv.ctr.ctr2.count, sizeof(struct drsuapi_DsReplicaCursor2), - (comparison_fn_t)replmd_drsuapi_DsReplicaCursor2_compare); + (comparison_fn_t)drsuapi_DsReplicaCursor2_compare); /* * create the change ldb_message |