summaryrefslogtreecommitdiff
path: root/lib/dict.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-08-26 05:53:26 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-08-26 05:53:26 +0000
commit523767660c05cf359091694fcaccb763ebb7b2d7 (patch)
treee16fa7454fdf7ea8e34c8d14fdc2fefdf019c99d /lib/dict.c
parent327c0d6b1ccbaa73147ffd3f250c7f95e6f4d70d (diff)
downloadcurl-523767660c05cf359091694fcaccb763ebb7b2d7.tar.gz
Fixed some minor mismatched types found by splint.
Diffstat (limited to 'lib/dict.c')
-rw-r--r--lib/dict.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dict.c b/lib/dict.c
index c1da557e2..43bc72ebf 100644
--- a/lib/dict.c
+++ b/lib/dict.c
@@ -82,13 +82,13 @@
/* The last #include file should be: */
#include "memdebug.h"
-static char *unescape_word(struct SessionHandle *data, char *inp)
+static char *unescape_word(struct SessionHandle *data, const char *inp)
{
char *newp;
char *dictp;
char *ptr;
int len;
- unsigned char byte;
+ char byte;
int olen=0;
newp = curl_easy_unescape(data, inp, 0, &len);
@@ -100,7 +100,7 @@ static char *unescape_word(struct SessionHandle *data, char *inp)
/* According to RFC2229 section 2.2, these letters need to be escaped with
\[letter] */
for(ptr = newp;
- (byte = (unsigned char)*ptr) != 0;
+ (byte = *ptr) != 0;
ptr++) {
if ((byte <= 32) || (byte == 127) ||
(byte == '\'') || (byte == '\"') || (byte == '\\')) {