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
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.
Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| lib-oid.c | ||
| lib-oid.h | ||
| t-ctype.c | ||
| t-example-decorate.c | ||
| t-hash.c | ||
| t-hashmap.c | ||
| t-mem-pool.c | ||
| t-oidmap.c | ||
| t-oidtree.c | ||
| t-prio-queue.c | ||
| t-reftable-basics.c | ||
| t-reftable-block.c | ||
| t-reftable-merged.c | ||
| t-reftable-pq.c | ||
| t-reftable-readwrite.c | ||
| t-reftable-record.c | ||
| t-reftable-stack.c | ||
| t-reftable-tree.c | ||
| t-strbuf.c | ||
| t-strcmp-offset.c | ||
| t-strvec.c | ||
| t-trailer.c | ||
| t-urlmatch-normalization.c | ||
| test-lib.c | ||
| test-lib.h | ||