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/nbt_server | |
parent | 46dfa9dfbdd7649cd8a71e9727aff830a58e4d55 (diff) | |
download | samba-3ae75a424890fdeddd12535c9330186ec2fcd899.tar.gz samba-3ae75a424890fdeddd12535c9330186ec2fcd899.tar.bz2 samba-3ae75a424890fdeddd12535c9330186ec2fcd899.zip |
s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()
Diffstat (limited to 'source4/nbt_server')
-rw-r--r-- | source4/nbt_server/wins/winsdb.c | 2 | ||||
-rw-r--r-- | source4/nbt_server/wins/winsserver.c | 3 |
2 files changed, 2 insertions, 3 deletions
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) { |