diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-14 10:02:35 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-14 18:44:21 +1100 |
commit | 93a33597292eee51b1f8714526cd145d4abe56c1 (patch) | |
tree | 62f7e4aa97eefed3071c1ede727a513b328f5929 /source3/locking | |
parent | 7cff685c7ecb7dbb126d3bd45217d13fa85ad751 (diff) | |
download | samba-93a33597292eee51b1f8714526cd145d4abe56c1.tar.gz samba-93a33597292eee51b1f8714526cd145d4abe56c1.tar.bz2 samba-93a33597292eee51b1f8714526cd145d4abe56c1.zip |
s3-locking: convert brlock to TYPESAFE_QSORT()
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/brlock.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); |