1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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 <abartlet@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Oct 18 10:58:45 UTC 2019 on sn-devel-184
This commit is contained in:
Andrew Bartlett 2019-10-16 16:47:26 +13:00 committed by Andreas Schneider
parent 5bc3561425
commit 7c83b1ade7

View File

@ -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];