summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-10-16 16:47:26 +1300
committerAndreas Schneider <asn@cryptomilk.org>2019-10-18 10:58:44 +0000
commit7c83b1ade7a79770689d876e985e245f5af276ad (patch)
tree225e10adb7031d2ea8fa5b475a803024c28af004 /source4
parent5bc35614253b4769590813249274355fd3d2ae53 (diff)
downloadsamba-7c83b1ade7a79770689d876e985e245f5af276ad.tar.gz
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
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/operational.c5
1 files changed, 2 insertions, 3 deletions
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];