When the opaque context blob is not used, we might as well
use a real qsort().
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
}
static int do_compare_msg(struct ldb_message **el1,
- struct ldb_message **el2,
- void *opaque)
+ struct ldb_message **el2)
{
return ldb_dn_compare((*el1)->dn, (*el2)->dn);
}
unsigned int i;
if (sctx->num_stored) {
- LDB_TYPESAFE_QSORT(sctx->store, sctx->num_stored, ldb, do_compare_msg);
+ TYPESAFE_QSORT(sctx->store, sctx->num_stored, do_compare_msg);
}
for (i = 0; i < sctx->num_stored; i++) {
display_message(sctx->store[i], sctx);