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 /pack-check.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 'pack-check.c')
-rw-r--r-- | pack-check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-check.c b/pack-check.c index c5c7763323..27f70d345f 100644 --- a/pack-check.c +++ b/pack-check.c @@ -96,7 +96,7 @@ static int verify_packfile(struct packed_git *p, entries[i].offset = nth_packed_object_offset(p, i); entries[i].nr = i; } - qsort(entries, nr_objects, sizeof(*entries), compare_entries); + QSORT(entries, nr_objects, compare_entries); for (i = 0; i < nr_objects; i++) { void *data; |