From 93a33597292eee51b1f8714526cd145d4abe56c1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 14 Feb 2010 10:02:35 +1100 Subject: s3-locking: convert brlock to TYPESAFE_QSORT() --- source3/locking/brlock.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 22c6c9e5b3..a90e1fd8d5 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -944,7 +944,7 @@ NTSTATUS brl_lock(struct messaging_context *msg_ctx, #if ZERO_ZERO /* sort the lock list */ - qsort(br_lck->lock_data, (size_t)br_lck->num_locks, sizeof(lock), lock_compare); + TYPESAFE_QSORT(br_lck->lock_data, (size_t)br_lck->num_locks, lock_compare); #endif /* If we're returning an error, return who blocked us. */ @@ -2029,8 +2029,7 @@ static void brl_revalidate(struct messaging_context *msg_ctx, goto done; } - qsort(state->pids, state->num_pids, sizeof(state->pids[0]), - compare_procids); + TYPESAFE_QSORT(state->pids, state->num_pids, compare_procids); ZERO_STRUCT(last_pid); -- cgit