diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-10-16 16:38:38 +1300 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-10-18 09:26:41 +0000 |
commit | 517342399c0a558fc016d06ce7728f3c56ef952e (patch) | |
tree | aa64881d2488a96bc323a2ae08e60084e1c9492f /source4 | |
parent | 25b1e478ec5e8ac40d41013a824311824482fa67 (diff) | |
download | samba-517342399c0a558fc016d06ce7728f3c56ef952e.tar.gz |
dsdb: Change LDB_TYPESAFE_QSORT() to TYPESAFE_QSORT() in repl_meta_data module
This call does not use the context argument so no additional parameter is needed.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index c92a7a6f337..c16ea7bb616 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -892,8 +892,7 @@ static int add_uint64_element(struct ldb_context *ldb, struct ldb_message *msg, } static int replmd_replPropertyMetaData1_attid_sort(const struct replPropertyMetaData1 *m1, - const struct replPropertyMetaData1 *m2, - const uint32_t *rdn_attid) + const struct replPropertyMetaData1 *m2) { /* * This assignment seems inoccous, but it is critical for the @@ -943,8 +942,8 @@ static int replmd_replPropertyMetaDataCtr1_sort_and_verify(struct ldb_context *l struct ldb_dn *dn) { /* Note this is O(n^2) for the almost-sorted case, which this is */ - LDB_TYPESAFE_QSORT(ctr1->array, ctr1->count, NULL, - replmd_replPropertyMetaData1_attid_sort); + TYPESAFE_QSORT(ctr1->array, ctr1->count, + replmd_replPropertyMetaData1_attid_sort); return replmd_replPropertyMetaDataCtr1_verify(ldb, ctr1, dn); } |