From 0994d7811f691f0b5c6743ae8d3ce90310cd7cea Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 2 Sep 2008 18:36:39 +0000 Subject: Removed some redundant type casts --- lib/base64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/base64.c') diff --git a/lib/base64.c b/lib/base64.c index 6b9331083..da9d01a93 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -117,7 +117,7 @@ size_t Curl_base64_decode(const char *src, unsigned char **outptr) /* Decode all but the last quantum (which may not decode to a multiple of 3 bytes) */ for(i = 0; i < numQuantums - 1; i++) { - decodeQuantum((unsigned char *)newstr, src); + decodeQuantum(newstr, src); newstr += 3; src += 4; } @@ -153,7 +153,7 @@ size_t Curl_base64_encode(struct SessionHandle *data, char *convbuf = NULL; #endif - char *indata = (char *)inp; + const char *indata = inp; *outptr = NULL; /* set to NULL in case of failure before we reach the end */ -- cgit v1.2.3