aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-08-21 20:38:13 +0100
committerSteve Holme <steve_holme@hotmail.com>2014-08-21 20:37:29 +0100
commitbdfc75e75195d70659997bfdb1f282ea31441f28 (patch)
tree984e77bff35905a4451be6e4e9d7491397927f37
parentda23624b57d2d03549c05610f5e9f4372032bfdc (diff)
openssl.c: Fixed compilation warning
warning: declaration of 'minor' shadows a global declaration
-rw-r--r--lib/vtls/openssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 10f13385c..ac82ad79d 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -2835,9 +2835,9 @@ size_t Curl_ossl_version(char *buffer, size_t size)
}
else {
if(ssleay_value&0xff0) {
- int minor = (ssleay_value >> 4) & 0xff;
- if(minor > 26) { /* handle extended version introduced for 0.9.8za */
- sub[1] = (char) ((minor - 1) % 26 + 'a' + 1);
+ int minor_ver = (ssleay_value >> 4) & 0xff;
+ if(minor_ver > 26) { /* handle extended version introduced for 0.9.8za */
+ sub[1] = (char) ((minor_ver - 1) % 26 + 'a' + 1);
sub[0] = 'z';
}
else {