]> git.ipfire.org Git - thirdparty/zstd.git/commit
Reduce scope of variables 3903/head
authorChristoph Grüninger <foss@grueninger.de>
Sun, 11 Feb 2024 10:22:05 +0000 (11:22 +0100)
committerChristoph Grüninger <foss@grueninger.de>
Sun, 11 Feb 2024 21:00:03 +0000 (22:00 +0100)
commitb921f1aad67cfc347ea7f8ef1c0afb6688bad4b6
tree0e0cda15ecf5f9caad9b62cab378048fee70f065
parenta3f1b2448c2a0e97e2850d1249a24d7385848435
Reduce scope of variables

This improves readability, keeps variables local, and
prevents the unintended use (e.g. typo) later on.
Found by Cppcheck (variableScope)
lib/compress/huf_compress.c
lib/compress/zstd_compress.c
lib/compress/zstd_ldm.c
lib/compress/zstd_opt.c
lib/compress/zstdmt_compress.c
programs/benchfn.c
programs/fileio.c
programs/util.c