From 3ae75a424890fdeddd12535c9330186ec2fcd899 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 13 Feb 2010 13:26:51 +1100 Subject: s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort() --- source4/nbt_server/wins/winsdb.c | 2 +- source4/nbt_server/wins/winsserver.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'source4/nbt_server/wins') diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c index fb3dcbf906..fef5cc84d5 100644 --- a/source4/nbt_server/wins/winsdb.c +++ b/source4/nbt_server/wins/winsdb.c @@ -503,7 +503,7 @@ add_new_addr: addresses[len+1] = NULL; - ldb_qsort(addresses, len+1 , sizeof(addresses[0]), h, (ldb_qsort_cmp_fn_t)winsdb_addr_sort_list); + LDB_TYPESAFE_QSORT(addresses, len+1, h, winsdb_addr_sort_list); return addresses; } diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c index ca8daedc66..eab3f20d78 100644 --- a/source4/nbt_server/wins/winsserver.c +++ b/source4/nbt_server/wins/winsserver.c @@ -669,8 +669,7 @@ static void nbtd_wins_randomize1Clist(struct loadparm_context *lp_ctx, if (num_addrs <= 1) return; /* nothing to do */ /* first sort the addresses depending on the matching to the client */ - ldb_qsort(addresses, num_addrs , sizeof(addresses[0]), - src, (ldb_qsort_cmp_fn_t)nbtd_wins_randomize1Clist_sort); + LDB_TYPESAFE_QSORT(addresses, num_addrs, src, nbtd_wins_randomize1Clist_sort); mask = lp_parm_string(lp_ctx, NULL, "nbtd", "wins_randomize1Clist_mask"); if (!mask) { -- cgit