diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-14 10:03:55 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-14 18:44:21 +1100 |
commit | 862a17e9ba0aac382a4301d1d60c9d5ea4888959 (patch) | |
tree | 16c442cd16e2cee80056bb7309d4159862791582 /source3/utils | |
parent | 3f0898a9f50a35ae94fda9b89809edae0cd9bbb3 (diff) | |
download | samba-862a17e9ba0aac382a4301d1d60c9d5ea4888959.tar.gz samba-862a17e9ba0aac382a4301d1d60c9d5ea4888959.tar.xz samba-862a17e9ba0aac382a4301d1d60c9d5ea4888959.zip |
s3: last part of TYPESAFE_QSORT() conversion
convert smbcacls, sharesec and web/
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/sharesec.c | 2 | ||||
-rw-r--r-- | source3/utils/smbcacls.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/sharesec.c b/source3/utils/sharesec.c index 4be77ecadd..00b6975bf0 100644 --- a/source3/utils/sharesec.c +++ b/source3/utils/sharesec.c @@ -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])) { diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index eefe4fe77c..5fd18ff58c 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -792,7 +792,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])) { |