http_digest: Fixed compilation errors from commit 6f8d8131b1

error: invalid operands to binary
warning: pointer targets in assignment differ in signedness
This commit is contained in:
Steve Holme 2014-11-05 15:38:10 +00:00
parent 6f8d8131b1
commit f697d7fdd5

View File

@ -76,7 +76,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
CURLcode result; CURLcode result;
struct SessionHandle *data = conn->data; struct SessionHandle *data = conn->data;
unsigned char *path; unsigned char *path;
unsigned char *tmp; char *tmp;
char *response; char *response;
size_t len; size_t len;
@ -137,10 +137,10 @@ CURLcode Curl_output_digest(struct connectdata *conn,
if(authp->iestyle && ((tmp = strchr((char *)uripath, '?')) != NULL)) { if(authp->iestyle && ((tmp = strchr((char *)uripath, '?')) != NULL)) {
size_t urilen = tmp - (char *)uripath; size_t urilen = tmp - (char *)uripath;
path = aprintf("%.*s", urilen, uripath); path = (unsigned char *) aprintf("%.*s", urilen, uripath);
} }
else else
path = strdup((char *) uripath); path = (unsigned char *) strdup((char *)uripath);
if(!path) if(!path)
return CURLE_OUT_OF_MEMORY; return CURLE_OUT_OF_MEMORY;