s4-kcc: remove a qsort() that snuck into the new topology code
authorAndrew Tridgell <tridge@samba.org>
Tue, 16 Feb 2010 11:41:45 +0000 (22:41 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 16 Feb 2010 11:42:59 +0000 (22:42 +1100)
source4/dsdb/kcc/kcc_topology.c

index 53de556d4341ec3ead98e92945b342dc8ac6a038..571bd8482eedb225fe5ee5ab297aca528285a57c 100644 (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];