1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4-auth: use TYPESAFE_QSORT() in gensec

This commit is contained in:
Andrew Tridgell 2010-02-13 13:00:03 +11:00
parent 5549190b37
commit 0f50f4440d

View File

@ -30,6 +30,7 @@
#include "auth/credentials/credentials.h" #include "auth/credentials/credentials.h"
#include "auth/gensec/gensec.h" #include "auth/gensec/gensec.h"
#include "param/param.h" #include "param/param.h"
#include "lib/util/tsort.h"
/* the list of currently registered GENSEC backends */ /* the list of currently registered GENSEC backends */
static struct gensec_security_ops **generic_security_ops; static struct gensec_security_ops **generic_security_ops;
@ -1405,7 +1406,7 @@ _PUBLIC_ NTSTATUS gensec_init(struct loadparm_context *lp_ctx)
talloc_free(shared_init); talloc_free(shared_init);
qsort(generic_security_ops, gensec_num_backends, sizeof(*generic_security_ops), QSORT_CAST sort_gensec); TYPESAFE_QSORT(generic_security_ops, gensec_num_backends, sort_gensec);
return NT_STATUS_OK; return NT_STATUS_OK;
} }