Re: [PATCH 2/5] t: harmonize t-reftable-merged.c with coding guidelines
- From
Karthik Nayak <karthik.188@gmail.com>
- Date
- Jul 5, 2024, 18:08 UTC
- Message-ID
- <CAOLa=ZTdH5YHxs3wOkO68CCoMQM1WOYFi4LpTuuDj11fCRqK9w@mail.gmail.com>
- In-Reply-To
- <20240703171131.3929-3-chandrapratap3519@gmail.com>
Chandra Pratap <chandrapratap3519@gmail.com> writes:
Show 8 quoted lines
> Harmonize the newly ported test unit-tests/t-reftable-merged.c
> with the following guidelines:
> - Single line control flow statements like 'for' and 'if'
> must omit curly braces.
> - Structs must be 0-initialized with '= { 0 }' instead of '= { NULL }'.
> - Array indices must be of type 'size_t', not 'int'.
> - It is fine to use C99 initial declaration in 'for' loop.
>Seems like I spoke too soon, some of my comments from the previous commit have been addressed here. Nice.
[snip]