From: Eric Sunshine Date: Tue, 06 Aug 2024 18:20:15 GMT Subject: Re: [PATCH 2/6] t: harmonize t-reftable-stack.c with coding guidelines Message-ID: In-Reply-To: <20240806142020.4615-3-chandrapratap3519@gmail.com> On Tue, Aug 6, 2024 at 10:21 AM Chandra Pratap wrote: > 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'and s/'size_t'and'/'size_t' and/ > 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