1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

s3-locking: convert brlock to TYPESAFE_QSORT()

This commit is contained in:
Andrew Tridgell 2010-02-14 10:02:35 +11:00
parent 7cff685c7e
commit 93a3359729

View File

@ -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);