From: Andrew Tridgell Date: Tue, 16 Feb 2010 11:41:45 +0000 (+1100) Subject: s4-kcc: remove a qsort() that snuck into the new topology code X-Git-Url: http://git.samba.org/?p=abartlet%2Fsamba.git%2F.git;a=commitdiff_plain;h=eda16f2410d7a6d79505b102aca8f111de4871d9 s4-kcc: remove a qsort() that snuck into the new topology code --- diff --git a/source4/dsdb/kcc/kcc_topology.c b/source4/dsdb/kcc/kcc_topology.c index 53de556d434..571bd8482ee 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];