diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-11-03 16:24:17 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-11-03 16:24:17 +0000 |
commit | 297644fa70bd99bf832b5381a3266dee5d350bc0 (patch) | |
tree | 8ab357d46f53e23c4fb28aa790b495617ad77327 /lib/x509asn1.c | |
parent | 0177f28c51653cb937d17b0fa1eabeb5ee28c1c3 (diff) | |
download | curl-297644fa70bd99bf832b5381a3266dee5d350bc0.tar.gz |
x509asn1.c: Fixed compilation warnings
warning: declaration of 'chsize' shadows a global declaration
Diffstat (limited to 'lib/x509asn1.c')
-rw-r--r-- | lib/x509asn1.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/x509asn1.c b/lib/x509asn1.c index d6aa04596..b2f75169c 100644 --- a/lib/x509asn1.c +++ b/lib/x509asn1.c @@ -252,7 +252,7 @@ utf8asn1str(char * * to, int type, const char * from, const char * end) size_t inlength = end - from; int size = 1; size_t outlength; - int chsize; + int charsize; unsigned int wc; char * buf; @@ -305,7 +305,7 @@ utf8asn1str(char * * to, int type, const char * from, const char * end) default: /* case 1: */ wc = (wc << 8) | *(const unsigned char *) from++; } - chsize = 1; + charsize = 1; if(wc >= 0x00000080) { if(wc >= 0x00000800) { if(wc >= 0x00010000) { @@ -315,18 +315,18 @@ utf8asn1str(char * * to, int type, const char * from, const char * end) } buf[outlength + 3] = (char) (0x80 | (wc & 0x3F)); wc = (wc >> 6) | 0x00010000; - chsize++; + charsize++; } buf[outlength + 2] = (char) (0x80 | (wc & 0x3F)); wc = (wc >> 6) | 0x00000800; - chsize++; + charsize++; } buf[outlength + 1] = (char) (0x80 | (wc & 0x3F)); wc = (wc >> 6) | 0x000000C0; - chsize++; + charsize++; } buf[outlength] = (char) wc; - outlength += chsize; + outlength += charsize; } } buf[outlength] = '\0'; |