aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2009-08-29 03:53:09 +0000
committerGunter Knauf <gk@gknw.de>2009-08-29 03:53:09 +0000
commit9e8eec4816f512f4dc50e64ac0df9ade854f093e (patch)
tree5ff93b00b81232ed686f7b36e23abab5c78ee4ea /lib
parentfa2ea23c962bf106db1b177bee36a21165e2bb5f (diff)
add casts to silent compiler warnings with 64bit systems.
Diffstat (limited to 'lib')
-rw-r--r--lib/socks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/socks.c b/lib/socks.c
index fba0bef38..b14b06446 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -514,10 +514,10 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
socksreq[len++] = 1; /* username/pw subnegotiation version */
socksreq[len++] = (char) userlen;
memcpy(socksreq + len, proxy_name, (int) userlen);
- len += userlen;
+ len += (int)userlen;
socksreq[len++] = (char) pwlen;
memcpy(socksreq + len, proxy_password, (int) pwlen);
- len += pwlen;
+ len += (int)pwlen;
code = Curl_write_plain(conn, sock, (char *)socksreq, len, &written);
if((code != CURLE_OK) || (len != written)) {