Re: [PATCH 2/6] t: harmonize t-reftable-stack.c with coding guidelines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 6, 2024 at 10:21 AM Chandra Pratap
<chandrapratap3519@xxxxxxxxx> 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 <chandrapratap3519@xxxxxxxxx>





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux