mirror of
https://github.com/curl/curl.git
synced 2026-08-02 22:50:27 +03:00
explicit typecasts when converting from long to int to avoid warnings
This commit is contained in:
parent
d90d40b5d1
commit
17841a20e3
1 changed files with 3 additions and 3 deletions
|
|
@ -1861,7 +1861,7 @@ static int handleSock5Proxy(const char *proxy_name,
|
||||||
{
|
{
|
||||||
struct Curl_dns_entry *dns;
|
struct Curl_dns_entry *dns;
|
||||||
Curl_addrinfo *hp=NULL;
|
Curl_addrinfo *hp=NULL;
|
||||||
int rc = Curl_resolv(conn, conn->host.name, conn->remote_port, &dns);
|
int rc = Curl_resolv(conn, conn->host.name, (int)conn->remote_port, &dns);
|
||||||
|
|
||||||
if(rc == CURLRESOLV_ERROR)
|
if(rc == CURLRESOLV_ERROR)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
@ -3222,7 +3222,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
||||||
conn->port = conn->remote_port; /* it is the same port */
|
conn->port = conn->remote_port; /* it is the same port */
|
||||||
|
|
||||||
/* Resolve target host right on */
|
/* Resolve target host right on */
|
||||||
rc = Curl_resolv(conn, conn->host.name, conn->port, &hostaddr);
|
rc = Curl_resolv(conn, conn->host.name, (int)conn->port, &hostaddr);
|
||||||
if(rc == CURLRESOLV_PENDING)
|
if(rc == CURLRESOLV_PENDING)
|
||||||
*async = TRUE;
|
*async = TRUE;
|
||||||
|
|
||||||
|
|
@ -3239,7 +3239,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
||||||
fix_hostname(conn, &conn->proxy);
|
fix_hostname(conn, &conn->proxy);
|
||||||
|
|
||||||
/* resolve proxy */
|
/* resolve proxy */
|
||||||
rc = Curl_resolv(conn, conn->proxy.name, conn->port, &hostaddr);
|
rc = Curl_resolv(conn, conn->proxy.name, (int)conn->port, &hostaddr);
|
||||||
|
|
||||||
if(rc == CURLRESOLV_PENDING)
|
if(rc == CURLRESOLV_PENDING)
|
||||||
*async = TRUE;
|
*async = TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue