summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmb_xattr.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-14 10:00:49 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-14 18:44:20 +1100
commit8120bc2ba957fa78e04f6f5fc257c91a7f735e82 (patch)
tree43e6fd9bac79ecbad7c1f7b7199bb8f42276ab9b /source3/libsmb/libsmb_xattr.c
parent7347ca359d6050575be70274a55b18628d0f3c5b (diff)
downloadsamba-8120bc2ba957fa78e04f6f5fc257c91a7f735e82.tar.gz
samba-8120bc2ba957fa78e04f6f5fc257c91a7f735e82.tar.bz2
samba-8120bc2ba957fa78e04f6f5fc257c91a7f735e82.zip
s3-lib: use TYPESAFE_QSORT() in remaining s3 library code
the sort_query_replies() in nmblib.c is a TODO. It uses a hack that treats a char* as a structure. I've left that one alone for now.
Diffstat (limited to 'source3/libsmb/libsmb_xattr.c')
-rw-r--r--source3/libsmb/libsmb_xattr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c
index 27c3e12399..cbdca4e748 100644
--- a/source3/libsmb/libsmb_xattr.c
+++ b/source3/libsmb/libsmb_xattr.c
@@ -145,8 +145,7 @@ 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])) {