From: Andrew Bartlett Date: Wed, 16 Oct 2019 03:47:26 +0000 (+1300) Subject: dsdb: Change LDB_TYPESAFE_QSORT() to TYPESAFE_QSORT() in operational module X-Git-Tag: talloc-2.3.1~327 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c83b1ade7a79770689d876e985e245f5af276ad;p=thirdparty%2Fsamba.git dsdb: Change LDB_TYPESAFE_QSORT() to TYPESAFE_QSORT() in operational 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 Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Fri Oct 18 10:58:45 UTC 2019 on sn-devel-184 --- diff --git a/source4/dsdb/samdb/ldb_modules/operational.c b/source4/dsdb/samdb/ldb_modules/operational.c index 86e43e124af..5eaebf98141 100644 --- a/source4/dsdb/samdb/ldb_modules/operational.c +++ b/source4/dsdb/samdb/ldb_modules/operational.c @@ -1035,8 +1035,7 @@ static int get_pso_count(struct ldb_module *module, TALLOC_CTX *mem_ctx, * The PSO with the lowest precedence is better, otherwise (if the precedence * is equal) the PSO with the lower GUID wins. */ -static int pso_compare(struct ldb_message **m1, struct ldb_message **m2, - TALLOC_CTX *mem_ctx) +static int pso_compare(struct ldb_message **m1, struct ldb_message **m2) { uint32_t prec1; uint32_t prec2; @@ -1134,7 +1133,7 @@ static int pso_find_best(struct ldb_module *module, TALLOC_CTX *mem_ctx, } /* sort the list so that the best PSO is first */ - LDB_TYPESAFE_QSORT(res->msgs, res->count, mem_ctx, pso_compare); + TYPESAFE_QSORT(res->msgs, res->count, pso_compare); if (res->count > 0) { *best_pso = res->msgs[0];