From: Andrew Bartlett Date: Wed, 16 Oct 2019 03:38:38 +0000 (+1300) Subject: dsdb: Change LDB_TYPESAFE_QSORT() to TYPESAFE_QSORT() in repl_meta_data module X-Git-Tag: talloc-2.3.1~329 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=517342399c0a558fc016d06ce7728f3c56ef952e;p=thirdparty%2Fsamba.git 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 Reviewed-by: David Mulder Reviewed-by: Andreas Schneider --- 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); }