1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 17:31:46 -05:00

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;
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;