Skip to content

Commit

Permalink
openssl.c: Fixed compilation warning
Browse files Browse the repository at this point in the history
warning: declaration of 'minor' shadows a global declaration
  • Loading branch information
captain-caveman2k committed Aug 21, 2014
1 parent da23624 commit bdfc75e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/vtls/openssl.c
Expand Up @@ -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 {
Expand Down

0 comments on commit bdfc75e

Please sign in to comment.