diff options
author | Nikolay Morozov <nmorozoff77@yandex.ru> | 2020-02-26 12:38:27 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2020-02-27 00:14:48 +0300 |
commit | 0906436e33bdd8dabf07d494e3d6d5184cc02246 (patch) | |
tree | ec09bd8099b325e525132588d9f16c4310e0d575 /gosthash2012.c | |
parent | 2883c9c20b26688f648fc14db1637890f96cab35 (diff) | |
download | gost-engine-0906436e33bdd8dabf07d494e3d6d5184cc02246.zip gost-engine-0906436e33bdd8dabf07d494e3d6d5184cc02246.tar.gz gost-engine-0906436e33bdd8dabf07d494e3d6d5184cc02246.tar.bz2 |
cppcheck: The scope of the variable can be reduced.
Diffstat (limited to 'gosthash2012.c')
-rw-r--r-- | gosthash2012.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gosthash2012.c b/gosthash2012.c index 60fa436..9548bfb 100644 --- a/gosthash2012.c +++ b/gosthash2012.c @@ -195,7 +195,6 @@ static INLINE void stage3(gost2012_hash_ctx * CTX) void gost2012_hash_block(gost2012_hash_ctx * CTX, const unsigned char *data, size_t len) { - register size_t chunksize; register size_t bufsize = CTX->bufsize; if (bufsize == 0) { @@ -208,7 +207,7 @@ void gost2012_hash_block(gost2012_hash_ctx * CTX, } while (len) { - chunksize = 64 - bufsize; + register size_t chunksize = 64 - bufsize; if (chunksize > len) chunksize = len; |