summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-13 13:00:03 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-13 22:36:12 +1100
commit0f50f4440d870d0f83b20141f23354a2734c83e3 (patch)
tree964a417c4895abb312139a7ca655d01117500826
parent5549190b37a2bfc01f5cbff89da47b7ca4bd84fa (diff)
downloadsamba-0f50f4440d870d0f83b20141f23354a2734c83e3.tar.gz
samba-0f50f4440d870d0f83b20141f23354a2734c83e3.tar.bz2
samba-0f50f4440d870d0f83b20141f23354a2734c83e3.zip
s4-auth: use TYPESAFE_QSORT() in gensec
-rw-r--r--source4/auth/gensec/gensec.c3
1 files changed, 2 insertions, 1 deletions
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;
}