summaryrefslogtreecommitdiff
path: root/source4/rpc_server/drsuapi
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-13 13:26:51 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-13 22:36:12 +1100
commit3ae75a424890fdeddd12535c9330186ec2fcd899 (patch)
tree032ac645d93897748fd5d501d94cd998a719fd01 /source4/rpc_server/drsuapi
parent46dfa9dfbdd7649cd8a71e9727aff830a58e4d55 (diff)
downloadsamba-3ae75a424890fdeddd12535c9330186ec2fcd899.tar.gz
samba-3ae75a424890fdeddd12535c9330186ec2fcd899.tar.bz2
samba-3ae75a424890fdeddd12535c9330186ec2fcd899.zip
s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r--source4/rpc_server/drsuapi/getncchanges.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c
index a82962e31d..ac277e58b8 100644
--- a/source4/rpc_server/drsuapi/getncchanges.c
+++ b/source4/rpc_server/drsuapi/getncchanges.c
@@ -990,9 +990,8 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
r->out.ctr->ctr6.linked_attributes_count = getnc_state->la_count;
r->out.ctr->ctr6.linked_attributes = talloc_steal(mem_ctx, getnc_state->la_list);
- ldb_qsort(r->out.ctr->ctr6.linked_attributes, r->out.ctr->ctr6.linked_attributes_count,
- sizeof(r->out.ctr->ctr6.linked_attributes[0]),
- b_state->sam_ctx, (ldb_qsort_cmp_fn_t)linked_attribute_compare);
+ LDB_TYPESAFE_QSORT(r->out.ctr->ctr6.linked_attributes, r->out.ctr->ctr6.linked_attributes_count,
+ b_state->sam_ctx, linked_attribute_compare);
r->out.ctr->ctr6.uptodateness_vector = talloc(mem_ctx, struct drsuapi_DsReplicaCursor2CtrEx);
r->out.ctr->ctr6.new_highwatermark.highest_usn = r->out.ctr->ctr6.new_highwatermark.tmp_highest_usn;