diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-12-22 22:19:08 -0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-12-22 22:19:08 -0800 |
commit | 96896dfdd728e23935c7c8cd9eb0d793e3884686 (patch) | |
tree | df0961ee61866be007da5da0a40aa8cd222fb9b7 | |
parent | 02f1cc19182845d37cfb6a893f54af220a294ce7 (diff) | |
download | librsync-96896dfdd728e23935c7c8cd9eb0d793e3884686.tar.gz |
blake2b-ref: Separate declaration and code
Fixes old compilers like gcc 2.95.3. Yes some people are still using it.
-rw-r--r-- | blake2b-ref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blake2b-ref.c b/blake2b-ref.c index bcf81da..43cf4c1 100644 --- a/blake2b-ref.c +++ b/blake2b-ref.c @@ -149,10 +149,10 @@ static inline int blake2b_init0( blake2b_state *S ) /* init xors IV with input parameter block */ int blake2b_init_param( blake2b_state *S, const blake2b_param *P ) { - blake2b_init0( S ); uint8_t *p = ( uint8_t * )( P ); size_t i; + blake2b_init0( S ); /* IV XOR ParamBlock */ for( i = 0; i < 8; ++i ) S->h[i] ^= load64( p + sizeof( S->h[i] ) * i ); |