]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsdb: Change LDB_TYPESAFE_QSORT() to TYPESAFE_QSORT() in repl_meta_data module
authorAndrew Bartlett <abartlet@samba.org>
Wed, 16 Oct 2019 03:38:38 +0000 (16:38 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 18 Oct 2019 09:26:41 +0000 (09:26 +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>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index c92a7a6f3376c8ba777e6a7fbe69fd78fb133dc6..c16ea7bb616c926ef899ede13917dbca09e33ec3 100644 (file)
@@ -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);
 }