diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-10-11 00:03:46 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-11 00:03:46 +0300 |
commit | b8688adb12d086b161aa7c369126bdd56843a01b (patch) | |
tree | c1d649861b902b5d72dcd8a0d3d970a2294bf5ef /fetch-pack.c | |
parent | a23ca1b8dc42ffd4de2ef30d67ce1e21ded29886 (diff) | |
parent | 7e65c75c31de751f58945a22e91e120c10ab6e87 (diff) |
Merge branch 'rs/qsort'
We call "qsort(array, nelem, sizeof(array[0]), fn)", and most of
the time third parameter is redundant. A new QSORT() macro lets us
omit it.
* rs/qsort:
show-branch: use QSORT
use QSORT, part 2
coccicheck: use --all-includes by default
remove unnecessary check before QSORT
use QSORT
add QSORT
Diffstat (limited to 'fetch-pack.c')
-rw-r--r-- | fetch-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-pack.c b/fetch-pack.c index 413937e740..300763fae1 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -819,7 +819,7 @@ static struct ref *do_fetch_pack(struct fetch_pack_args *args, int agent_len; sort_ref_list(&ref, ref_compare_name); - qsort(sought, nr_sought, sizeof(*sought), cmp_ref_by_name); + QSORT(sought, nr_sought, cmp_ref_by_name); if ((args->depth > 0 || is_repository_shallow()) && !server_supports("shallow")) die("Server does not support shallow clients"); |