diff options
author | Bodo Möller <bodo@openssl.org> | 2002-08-09 15:58:28 +0400 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-08-09 15:58:28 +0400 |
commit | 41fdcfa71e39f8c1b8c6e27f1968e1847628c92c (patch) | |
tree | b45bbcd566c78f775135526502667b3c1b061388 /apps | |
parent | 60cc56b1a937a794c5620eec45f4244461473075 (diff) |
fix warnings
Diffstat (limited to 'apps')
-rw-r--r-- | apps/speed.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/speed.c b/apps/speed.c index 05d2b3164d..4a77e8af58 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -616,7 +616,7 @@ int MAIN(int argc, char **argv) EC_KEY *ecdh_a[EC_NUM], *ecdh_b[EC_NUM]; unsigned char secret_a[MAX_ECDH_SIZE], secret_b[MAX_ECDH_SIZE]; int secret_size_a, secret_size_b; - int ecdh_check = 0; + int ecdh_checks = 0; int secret_idx = 0; long ecdh_c[EC_NUM][2]; #endif @@ -2065,19 +2065,20 @@ int MAIN(int argc, char **argv) ecdh_a[j]->pub_key, ecdh_b[j]); if (secret_size_a != secret_size_b) - ecdh_check = 0; + ecdh_checks = 0; else - ecdh_check = 1; + ecdh_checks = 1; for (secret_idx = 0; - (secret_idx < secret_size_a) && (ecdh_check == 1); + (secret_idx < secret_size_a) + && (ecdh_checks == 1); secret_idx++) { if (secret_a[secret_idx] != secret_b[secret_idx]) - ecdh_check = 0; + ecdh_checks = 0; } - if (ecdh_check == 0) + if (ecdh_checks == 0) { BIO_printf(bio_err,"ECDH computations don't match.\n"); ERR_print_errors(bio_err); |