Skip to content
Snippets Groups Projects
Commit f697d7fd authored by Steve Holme's avatar Steve Holme
Browse files

http_digest: Fixed compilation errors from commit 6f8d8131

error: invalid operands to binary
warning: pointer targets in assignment differ in signedness
parent 6f8d8131
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment