diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-13 13:26:51 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-13 22:36:12 +1100 |
commit | 3ae75a424890fdeddd12535c9330186ec2fcd899 (patch) | |
tree | 032ac645d93897748fd5d501d94cd998a719fd01 /source4/lib/ldb/modules | |
parent | 46dfa9dfbdd7649cd8a71e9727aff830a58e4d55 (diff) | |
download | samba-3ae75a424890fdeddd12535c9330186ec2fcd899.tar.gz samba-3ae75a424890fdeddd12535c9330186ec2fcd899.tar.xz samba-3ae75a424890fdeddd12535c9330186ec2fcd899.zip |
s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()
Diffstat (limited to 'source4/lib/ldb/modules')
-rw-r--r-- | source4/lib/ldb/modules/sort.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/ldb/modules/sort.c b/source4/lib/ldb/modules/sort.c index 5d1431d739..4ef7a0cecb 100644 --- a/source4/lib/ldb/modules/sort.c +++ b/source4/lib/ldb/modules/sort.c @@ -144,9 +144,7 @@ static int server_sort_results(struct sort_context *ac) ac->a = ldb_schema_attribute_by_name(ldb, ac->attributeName); ac->sort_result = 0; - ldb_qsort(ac->msgs, ac->num_msgs, - sizeof(struct ldb_message *), - ac, (ldb_qsort_cmp_fn_t)sort_compare); + LDB_TYPESAFE_QSORT(ac->msgs, ac->num_msgs, ac, sort_compare); if (ac->sort_result != LDB_SUCCESS) { return ac->sort_result; |