1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

openssl.c: Fixed compilation warning

warning: declaration of 'minor' shadows a global declaration
This commit is contained in:
Steve Holme 2014-08-21 20:38:13 +01:00
parent da23624b57
commit bdfc75e751

View File

@ -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 {