summaryrefslogtreecommitdiff
path: root/lib/http_digest.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-11-05 15:38:10 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-11-05 15:48:19 +0000
commitf697d7fdd5bc977fbd030d2fcd3573a5ffae940c (patch)
tree9835a8a09c279722b817883266dc43f0fe7cb471 /lib/http_digest.c
parent6f8d8131b1a430002bb1ca214d0e66e3475a195e (diff)
downloadcurl-f697d7fdd5bc977fbd030d2fcd3573a5ffae940c.tar.gz
http_digest: Fixed compilation errors from commit 6f8d8131b1
error: invalid operands to binary warning: pointer targets in assignment differ in signedness
Diffstat (limited to 'lib/http_digest.c')
-rw-r--r--lib/http_digest.c6
1 files changed, 3 insertions, 3 deletions
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;