From d20658c3919c96e1dd6fa486da7f8bea7f931d97 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 13 Sep 2009 09:54:13 +0000 Subject: [PATCH] Fixed gcc warnings. --- ykpbkdf2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ykpbkdf2.c b/ykpbkdf2.c index 87a687b..9273d1c 100644 --- a/ykpbkdf2.c +++ b/ykpbkdf2.c @@ -57,7 +57,9 @@ int yk_pbkdf2(const char *passphrase, { size_t l = ((dklen - 1 + prf_method->output_size) / prf_method->output_size); +#if 0 /* r for "rest" is unused but may be interesting in the future */ size_t r = dklen - ((l - 1) * prf_method->output_size); +#endif unsigned int block_count; @@ -75,7 +77,7 @@ int yk_pbkdf2(const char *passphrase, for (iteration = 0; iteration < iterations; iteration++) { if (!prf_method->prf_fn(passphrase, strlen(passphrase), - block, block_len, + (char *)block, block_len, block, sizeof(block))) return 0; block_len = prf_method->output_size; -- 2.39.5