mirror of
https://github.com/curl/curl.git
synced 2026-07-23 21:47:34 +03:00
compiler warning fix
This commit is contained in:
parent
e268e8559e
commit
be3c5f0b94
1 changed files with 2 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ CURLcode Curl_SOCKS4(const char *proxy_name,
|
|||
|
||||
socksreq[0] = 4; /* version (SOCKS4) */
|
||||
socksreq[1] = 1; /* connect */
|
||||
*((unsigned short*)&socksreq[2]) = htons(remote_port);
|
||||
*((unsigned short*)&socksreq[2]) = htons((unsigned short)remote_port);
|
||||
|
||||
/* DNS resolve */
|
||||
{
|
||||
|
|
@ -552,7 +552,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
|||
}
|
||||
}
|
||||
|
||||
*((unsigned short*)&socksreq[8]) = htons(remote_port);
|
||||
*((unsigned short*)&socksreq[8]) = htons((unsigned short)remote_port);
|
||||
|
||||
{
|
||||
const int packetsize = 10;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue