]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsdb: Change LDB_TYPESAFE_QSORT() to TYPESAFE_QSORT() in operational module
authorAndrew Bartlett <abartlet@samba.org>
Wed, 16 Oct 2019 03:47:26 +0000 (16:47 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 18 Oct 2019 10:58:44 +0000 (10:58 +0000)
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

source4/dsdb/samdb/ldb_modules/operational.c

index 86e43e124afc77d059f0f94d404d0e9e6cc864f0..5eaebf981417547d8a86c839698f6a442ea80d27 100644 (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];