]> git.99rst.org Git - git.git/commit
t: harmonize t-reftable-block.c with coding guidelines
authorChandra Pratap <redacted>
Wed, 21 Aug 2024 12:30:52 +0000 (18:00 +0530)
committerJunio C Hamano <redacted>
Wed, 21 Aug 2024 16:41:40 +0000 (09:41 -0700)
commit6853b931bd04d534c7e09073ab39f8192f0dd34e
tree764f10b730632217d224d3d8a240b52bdc8ed5ff
parent546cc0d64e3df8a012d785c6b423d03e16bfc0c5
t: harmonize t-reftable-block.c with coding guidelines

Harmonize the newly ported test unit-tests/t-reftable-block.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
  not 'int'.
- Return code variable should preferably be named 'ret', not 'n'.

Mentored-by: Patrick Steinhardt <redacted>
Mentored-by: Christian Couder <redacted>
Signed-off-by: Chandra Pratap <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/unit-tests/t-reftable-block.c
git clone https://git.99rst.org/PROJECT