1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s4-kcc: remove a qsort() that snuck into the new topology code

This commit is contained in:
Andrew Tridgell
2010-02-16 22:41:45 +11:00
parent e3a272c3f2
commit eda16f2410

View File

@ -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];