Skip to content

Commit

Permalink
dict: rename byte to avoid compiler shadowed declaration warning
Browse files Browse the repository at this point in the history
This conflicted with a WolfSSL typedef.
  • Loading branch information
dfandrich committed Mar 23, 2015
1 parent 430006c commit 145c469
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/dict.c
Expand Up @@ -97,7 +97,7 @@ static char *unescape_word(struct SessionHandle *data, const char *inputbuff)
char *dictp;
char *ptr;
int len;
char byte;
char ch;
int olen=0;

newp = curl_easy_unescape(data, inputbuff, 0, &len);
Expand All @@ -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
\[letter] */
for(ptr = newp;
(byte = *ptr) != 0;
(ch = *ptr) != 0;
ptr++) {
if((byte <= 32) || (byte == 127) ||
(byte == '\'') || (byte == '\"') || (byte == '\\')) {
if((ch <= 32) || (ch == 127) ||
(ch == '\'') || (ch == '\"') || (ch == '\\')) {
dictp[olen++] = '\\';
}
dictp[olen++] = byte;
dictp[olen++] = ch;
}
dictp[olen]=0;
}
Expand Down

0 comments on commit 145c469

Please sign in to comment.