summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-13 13:26:51 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-13 22:36:12 +1100
commit3ae75a424890fdeddd12535c9330186ec2fcd899 (patch)
tree032ac645d93897748fd5d501d94cd998a719fd01 /source4/lib/ldb/tools
parent46dfa9dfbdd7649cd8a71e9727aff830a58e4d55 (diff)
downloadsamba-3ae75a424890fdeddd12535c9330186ec2fcd899.tar.gz
samba-3ae75a424890fdeddd12535c9330186ec2fcd899.tar.bz2
samba-3ae75a424890fdeddd12535c9330186ec2fcd899.zip
s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r--source4/lib/ldb/tools/ldbsearch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/ldbsearch.c b/source4/lib/ldb/tools/ldbsearch.c
index 8f7ee1ce38..207b344195 100644
--- a/source4/lib/ldb/tools/ldbsearch.c
+++ b/source4/lib/ldb/tools/ldbsearch.c
@@ -248,8 +248,7 @@ again:
int i;
if (sctx->num_stored) {
- ldb_qsort(sctx->store, sctx->num_stored, sizeof(struct ldb_message *),
- ldb, (ldb_qsort_cmp_fn_t)do_compare_msg);
+ LDB_TYPESAFE_QSORT(sctx->store, sctx->num_stored, ldb, do_compare_msg);
}
for (i = 0; i < sctx->num_stored; i++) {
display_message(sctx->store[i], sctx);