1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

cast the qsort

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 61293979ce
commit 703d9f5cb3

View File

@ -554,7 +554,7 @@ static void sort_acl(SEC_ACL *the_acl)
int i;
if (!the_acl) return;
qsort(the_acl->ace, the_acl->num_aces, sizeof(the_acl->ace[0]), ace_compare);
qsort(the_acl->ace, the_acl->num_aces, sizeof(the_acl->ace[0]), QSORT_CAST ace_compare);
for (i=1;i<the_acl->num_aces;) {
if (sec_ace_equal(&the_acl->ace[i-1], &the_acl->ace[i])) {