summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-16 22:41:45 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-16 22:42:59 +1100
commiteda16f2410d7a6d79505b102aca8f111de4871d9 (patch)
tree2fdc19576b7736896c32ca1b8997195a19f2d234 /source4
parente3a272c3f23139e69c4e671e6b7b756d727c4e61 (diff)
downloadsamba-eda16f2410d7a6d79505b102aca8f111de4871d9.tar.gz
samba-eda16f2410d7a6d79505b102aca8f111de4871d9.tar.bz2
samba-eda16f2410d7a6d79505b102aca8f111de4871d9.zip
s4-kcc: remove a qsort() that snuck into the new topology code
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/kcc/kcc_topology.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/kcc/kcc_topology.c b/source4/dsdb/kcc/kcc_topology.c
index 53de556d43..571bd8482e 100644
--- a/source4/dsdb/kcc/kcc_topology.c
+++ b/source4/dsdb/kcc/kcc_topology.c
@@ -146,8 +146,7 @@ static NTSTATUS kcctpl_create_graph(TALLOC_CTX *mem_ctx,
guids->count);
NT_STATUS_HAVE_NO_MEMORY_AND_FREE(graph->vertices.data, graph);
- qsort(guids->data, guids->count, sizeof(struct GUID),
- QSORT_CAST GUID_compare);
+ TYPESAFE_QSORT(guids->data, guids->count, GUID_compare);
for (i = 0; i < guids->count; i++) {
graph->vertices.data[i].id = guids->data[i];