summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-12-22 22:19:08 -0800
committerTimothy Gu <timothygu99@gmail.com>2014-12-22 22:19:08 -0800
commit96896dfdd728e23935c7c8cd9eb0d793e3884686 (patch)
treedf0961ee61866be007da5da0a40aa8cd222fb9b7
parent02f1cc19182845d37cfb6a893f54af220a294ce7 (diff)
downloadlibrsync-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.c2
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 );