1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-08 12:28:06 -05:00

dict: rename byte to avoid compiler shadowed declaration warning

This conflicted with a WolfSSL typedef.
This commit is contained in:
Dan Fandrich 2015-03-23 10:16:10 +01:00
parent 430006c5e2
commit 145c4692ff

View File

@ -97,7 +97,7 @@ static char *unescape_word(struct SessionHandle *data, const char *inputbuff)
char *dictp; char *dictp;
char *ptr; char *ptr;
int len; int len;
char byte; char ch;
int olen=0; int olen=0;
newp = curl_easy_unescape(data, inputbuff, 0, &len); newp = curl_easy_unescape(data, inputbuff, 0, &len);
@ -109,13 +109,13 @@ static char *unescape_word(struct SessionHandle *data, const char *inputbuff)
/* According to RFC2229 section 2.2, these letters need to be escaped with /* According to RFC2229 section 2.2, these letters need to be escaped with
\[letter] */ \[letter] */
for(ptr = newp; for(ptr = newp;
(byte = *ptr) != 0; (ch = *ptr) != 0;
ptr++) { ptr++) {
if((byte <= 32) || (byte == 127) || if((ch <= 32) || (ch == 127) ||
(byte == '\'') || (byte == '\"') || (byte == '\\')) { (ch == '\'') || (ch == '\"') || (ch == '\\')) {
dictp[olen++] = '\\'; dictp[olen++] = '\\';
} }
dictp[olen++] = byte; dictp[olen++] = ch;
} }
dictp[olen]=0; dictp[olen]=0;
} }