reftable/reader: stop using `ARRAY_SIZE()` macro
We have a single user of the `ARRAY_SIZE()` macro in the reftable reader. Drop its use to reduce our dependence on the Git codebase. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
e676694298
commit
01a587da8c
|
@ -849,7 +849,7 @@ int reftable_reader_print_blocks(const char *tablename)
|
|||
printf("header:\n");
|
||||
printf(" block_size: %d\n", r->block_size);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(sections); i++) {
|
||||
for (i = 0; i < sizeof(sections) / sizeof(*sections); i++) {
|
||||
err = table_iter_seek_start(&ti, sections[i].type, 0);
|
||||
if (err < 0)
|
||||
goto done;
|
||||
|
|
Loading…
Reference in New Issue