s3: last part of TYPESAFE_QSORT() conversion
[ira/wip.git] / source3 / utils / sharesec.c
index 4be77ecadd633f888ad79ea18506a1bfc03a2fe0..00b6975bf0dbd9fc57ebaabc3e54dc47272616bc 100644 (file)
@@ -388,7 +388,7 @@ static void sort_acl(SEC_ACL *the_acl)
        uint32 i;
        if (!the_acl) return;
 
-       qsort(the_acl->aces, the_acl->num_aces, sizeof(the_acl->aces[0]), QSORT_CAST ace_compare);
+       TYPESAFE_QSORT(the_acl->aces, the_acl->num_aces, ace_compare);
 
        for (i=1;i<the_acl->num_aces;) {
                if (sec_ace_equal(&the_acl->aces[i-1], &the_acl->aces[i])) {