aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.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/easy.c
parent327c0d6b1ccbaa73147ffd3f250c7f95e6f4d70d (diff)
Fixed some minor mismatched types found by splint.
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 54915fb88..d008bb0f6 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -886,7 +886,8 @@ CURLcode Curl_convert_from_utf8(struct SessionHandle *data,
} else {
#ifdef HAVE_ICONV
/* do the translation ourselves */
- char *input_ptr, *output_ptr;
+ const char *input_ptr;
+ char *output_ptr;
size_t in_bytes, out_bytes, rc;
int error;
@@ -907,7 +908,7 @@ CURLcode Curl_convert_from_utf8(struct SessionHandle *data,
/* call iconv */
input_ptr = output_ptr = buffer;
in_bytes = out_bytes = length;
- rc = iconv(data->utf8_cd, (const char**)&input_ptr, &in_bytes,
+ rc = iconv(data->utf8_cd, &input_ptr, &in_bytes,
&output_ptr, &out_bytes);
if ((rc == ICONV_ERROR) || (in_bytes != 0)) {
error = ERRNO;