From 0f50f4440d870d0f83b20141f23354a2734c83e3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 13 Feb 2010 13:00:03 +1100 Subject: s4-auth: use TYPESAFE_QSORT() in gensec --- source4/auth/gensec/gensec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/auth') diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c index 3de0e1c935..7430eef957 100644 --- a/source4/auth/gensec/gensec.c +++ b/source4/auth/gensec/gensec.c @@ -30,6 +30,7 @@ #include "auth/credentials/credentials.h" #include "auth/gensec/gensec.h" #include "param/param.h" +#include "lib/util/tsort.h" /* the list of currently registered GENSEC backends */ 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); - 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; } -- cgit