mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
fix compiler warning
This commit is contained in:
parent
69f685056d
commit
1d620a3df4
@ -566,7 +566,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
|||||||
socksreq[2] = 0; /* must be zero */
|
socksreq[2] = 0; /* must be zero */
|
||||||
|
|
||||||
if(!socks5_resolve_local) {
|
if(!socks5_resolve_local) {
|
||||||
packetsize = 5 + hostname_len + 2;
|
packetsize = (ssize_t)(5 + hostname_len + 2);
|
||||||
|
|
||||||
socksreq[3] = 3; /* ATYP: domain name = 3 */
|
socksreq[3] = 3; /* ATYP: domain name = 3 */
|
||||||
socksreq[4] = (char) hostname_len; /* address length */
|
socksreq[4] = (char) hostname_len; /* address length */
|
||||||
|
Loading…
Reference in New Issue
Block a user