From 282cc79454f7b708085a04d04e98d11ffec8b293 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 14 Feb 2010 10:37:20 +1100 Subject: s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb code --- source4/lib/ldb/ldb_tdb/ldb_index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb/ldb_tdb/ldb_index.c') diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c index 4b31021001..bb4617db09 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_index.c +++ b/source4/lib/ldb/ldb_tdb/ldb_index.c @@ -973,7 +973,7 @@ static void ltdb_dn_list_remove_duplicates(struct dn_list *list) return; } - qsort(list->dn, list->count, sizeof(struct ldb_val), (comparison_fn_t) dn_list_cmp); + TYPESAFE_QSORT(list->dn, list->count, dn_list_cmp); new_count = 1; for (i=1; icount; i++) { -- cgit