diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-13 13:00:55 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-13 22:36:12 +1100 |
commit | f954f522a457a44e7b298e553907d59d670c9051 (patch) | |
tree | b25378a3ef54ab8a36264b6db20c77591a2f4b40 /source4/rpc_server/lsa | |
parent | e5c83e1adba59416a31fd78aaea6c99fff499ddd (diff) | |
download | samba-f954f522a457a44e7b298e553907d59d670c9051.tar.gz samba-f954f522a457a44e7b298e553907d59d670c9051.tar.bz2 samba-f954f522a457a44e7b298e553907d59d670c9051.zip |
s4-rpcserver: use TYPESAFE_QSORT() in rpc servers
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index 9709520da5..d4a33c2dc2 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -28,6 +28,7 @@ #include "librpc/gen_ndr/ndr_drsblobs.h" #include "librpc/gen_ndr/ndr_lsa.h" #include "../lib/crypto/crypto.h" +#include "lib/util/tsort.h" /* this type allows us to distinguish handle types @@ -1637,8 +1638,7 @@ static NTSTATUS dcesrv_lsa_EnumTrustDom(struct dcesrv_call_state *dce_call, TALL } /* sort the results by name */ - qsort(entries, count, sizeof(*entries), - (comparison_fn_t)compare_DomainInfo); + TYPESAFE_QSORT(entries, count, compare_DomainInfo); if (*r->in.resume_handle >= count) { *r->out.resume_handle = -1; @@ -1733,8 +1733,7 @@ static NTSTATUS dcesrv_lsa_EnumTrustedDomainsEx(struct dcesrv_call_state *dce_ca } /* sort the results by name */ - qsort(entries, count, sizeof(*entries), - (comparison_fn_t)compare_TrustDomainInfoInfoEx); + TYPESAFE_QSORT(entries, count, compare_TrustDomainInfoInfoEx); if (*r->in.resume_handle >= count) { *r->out.resume_handle = -1; |