aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2015-03-23 10:16:10 +0100
committerDan Fandrich <dan@coneharvesters.com>2015-03-23 10:16:10 +0100
commit145c4692ffb58ea4492a7912f636b3b834c84dd7 (patch)
treeb08c703656babc8f09d7601c4becc3dee33165d6
parent430006c5e270b21d2c5120e83e2b57657328dbf3 (diff)
dict: rename byte to avoid compiler shadowed declaration warning
This conflicted with a WolfSSL typedef.
-rw-r--r--lib/dict.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/dict.c b/lib/dict.c
index daea68070..06d76992e 100644
--- a/lib/dict.c
+++ b/lib/dict.c
@@ -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);
@@ -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;
}