Re: [PATCH 2/6] t: harmonize t-reftable-stack.c with coding guidelines
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Aug 6, 2024, 18:20 UTC
- Message-ID
- <CAPig+cTLzdUf9D-u4YWURPb-ymGM9xgi6Ckc_wQGgORDmMHP-A@mail.gmail.com>
- In-Reply-To
- <20240806142020.4615-3-chandrapratap3519@gmail.com>
On Tue, Aug 6, 2024 at 10:21 AM Chandra Pratap <chandrapratap3519@gmail.com> wrote:
Show 5 quoted lines
> Harmonize the newly ported test unit-tests/t-reftable-stack.c
> with the following guidelines:
> - Single line 'for' statements must omit curly braces.
> - Structs must be 0-initialized with '= { 0 }' instead of '= { NULL }'.
> - Array sizes and indices should preferably be of type 'size_t'ands/'size_t'and'/'size_t' and/
Show 7 quoted lines
> not 'int'. > - Function pointers should be passed as 'func' and not '&func'. > > While at it, remove initialization for those variables that are > re-used multiple times, like loop variables. > > Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>