Re: [PATCH] sha1-name: make sort_ambiguous_oid_array() thread-safe

2019-08-20 Thread Derrick Stolee
On 8/20/2019 2:49 PM, René Scharfe wrote: > Use QSORT_S instead of QSORT, which allows passing the repository > pointer to the comparison function without using a static variable. Makes sense. > -static struct repository *sort_ambiguous_repo; > -static int sort_ambiguous(const void *a, const void

[PATCH] sha1-name: make sort_ambiguous_oid_array() thread-safe

2019-08-20 Thread René Scharfe
Use QSORT_S instead of QSORT, which allows passing the repository pointer to the comparison function without using a static variable. Signed-off-by: René Scharfe --- sha1-name.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sha1-name.c b/sha1-name.c index 2989e27b7