From f697d7fdd5bc977fbd030d2fcd3573a5ffae940c Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Wed, 5 Nov 2014 15:38:10 +0000 Subject: http_digest: Fixed compilation errors from commit 6f8d8131b1 error: invalid operands to binary warning: pointer targets in assignment differ in signedness --- lib/http_digest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/http_digest.c') diff --git a/lib/http_digest.c b/lib/http_digest.c index 44ccd90bb..75251a8b6 100644 --- a/lib/http_digest.c +++ b/lib/http_digest.c @@ -76,7 +76,7 @@ CURLcode Curl_output_digest(struct connectdata *conn, CURLcode result; struct SessionHandle *data = conn->data; unsigned char *path; - unsigned char *tmp; + char *tmp; char *response; size_t len; @@ -137,10 +137,10 @@ CURLcode Curl_output_digest(struct connectdata *conn, if(authp->iestyle && ((tmp = strchr((char *)uripath, '?')) != NULL)) { size_t urilen = tmp - (char *)uripath; - path = aprintf("%.*s", urilen, uripath); + path = (unsigned char *) aprintf("%.*s", urilen, uripath); } else - path = strdup((char *) uripath); + path = (unsigned char *) strdup((char *)uripath); if(!path) return CURLE_OUT_OF_MEMORY; -- cgit v1.2.1