From 9ad763288dd6c292332c48c1e643522b7679eb15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 17 Nov 2012 14:14:52 -0800 Subject: [PATCH] fix -Wshadow --- lib/hcrypto/test_rsa.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/hcrypto/test_rsa.c b/lib/hcrypto/test_rsa.c index 3449d9b2a..43bb6d4db 100644 --- a/lib/hcrypto/test_rsa.c +++ b/lib/hcrypto/test_rsa.c @@ -149,7 +149,7 @@ cb_func(int a, int b, BN_GENCB *c) } static RSA * -read_key(ENGINE *engine, const char *rsa_key) +read_key(ENGINE *engine, const char *keyfile) { unsigned char buf[1024 * 4]; const unsigned char *p; @@ -157,22 +157,22 @@ read_key(ENGINE *engine, const char *rsa_key) RSA *rsa; FILE *f; - f = fopen(rsa_key, "rb"); + f = fopen(keyfile, "rb"); if (f == NULL) - err(1, "could not open file %s", rsa_key); + err(1, "could not open file %s", keyfile); rk_cloexec_file(f); size = fread(buf, 1, sizeof(buf), f); fclose(f); if (size == 0) - err(1, "failed to read file %s", rsa_key); + err(1, "failed to read file %s", keyfile); if (size == sizeof(buf)) - err(1, "key too long in file %s!", rsa_key); + err(1, "key too long in file %s!", keyfile); p = buf; rsa = d2i_RSAPrivateKey(NULL, &p, size); if (rsa == NULL) - err(1, "failed to parse key in file %s", rsa_key); + err(1, "failed to parse key in file %s", keyfile); RSA_set_method(rsa, ENGINE_get_RSA(engine));