summaryrefslogtreecommitdiffstats
path: root/test/bftest.c
diff options
context:
space:
mode:
authorJon Spillett <jon.spillett@oracle.com>2017-04-12 11:56:45 +1000
committerMatt Caswell <matt@openssl.org>2017-04-12 10:27:16 +0100
commit0bf3c66c9d5cfc4dc7b0eee326ac3554956d7aa3 (patch)
treea2938553a1d1c5ad96fa324edd9de0be6c899a9a /test/bftest.c
parent56bf5c55cd7d751390e92aad2b2bd9cc031b1e43 (diff)
Remove unused variable. Thanks @pauli-oracle
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3177)
Diffstat (limited to 'test/bftest.c')
-rw-r--r--test/bftest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bftest.c b/test/bftest.c
index 2bba060100..978fd582b1 100644
--- a/test/bftest.c
+++ b/test/bftest.c
@@ -339,14 +339,14 @@ static int test_bf_ecb(int n)
static int test_bf_set_key(int n)
{
- int i, ret = 1;
+ int ret = 1;
BF_KEY key;
unsigned char out[8];
BF_set_key(&key, n+1, key_test);
BF_ecb_encrypt(key_data, out, &key, BF_ENCRYPT);
/* mips-sgi-irix6.5-gcc vv -mabi=64 bug workaround */
- if (!TEST_mem_eq(out, 8, &(key_out[i = n][0]), 8))
+ if (!TEST_mem_eq(out, 8, &(key_out[n][0]), 8))
ret = 0;
return ret;