summaryrefslogtreecommitdiff
path: root/lib/socks.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-01-13 04:39:32 +0000
committerYang Tse <yangsita@gmail.com>2008-01-13 04:39:32 +0000
commita8ae8087c4a99f6840d822fd1fcba3c71e59b718 (patch)
tree1c829615d2b62134336297c0ca6f81949af96b1b /lib/socks.c
parent502da27d65f368258389e7b165b38672d9d9c9b7 (diff)
downloadcurl-a8ae8087c4a99f6840d822fd1fcba3c71e59b718.tar.gz
fix compiler warning
Diffstat (limited to 'lib/socks.c')
-rw-r--r--lib/socks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/socks.c b/lib/socks.c
index c9cb85869..13b7caa36 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -392,7 +392,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
long timeout;
bool socks5_resolve_local = (bool)(data->set.proxytype == CURLPROXY_SOCKS5);
const size_t hostname_len = strlen(hostname);
- int packetsize = 0;
+ ssize_t packetsize = 0;
/* RFC1928 chapter 5 specifies max 255 chars for domain name in packet */
if(!socks5_resolve_local && hostname_len > 255)