aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-04 21:37:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-07-04 21:37:35 +0000
commit17841a20e35b9406cb838b7bbcc1b4cf8e6b7c1f (patch)
treebb4ef1a589f46f60000c6d1428483d774b866458
parentd90d40b5d1803516770c1cd0fd065a99d06bbfc1 (diff)
explicit typecasts when converting from long to int to avoid warnings
-rw-r--r--lib/url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index c97ab6a1f..e6c742219 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1861,7 +1861,7 @@ static int handleSock5Proxy(const char *proxy_name,
{
struct Curl_dns_entry *dns;
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)
return 1;
@@ -3222,7 +3222,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
conn->port = conn->remote_port; /* it is the same port */
/* 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)
*async = TRUE;
@@ -3239,7 +3239,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
fix_hostname(conn, &conn->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)
*async = TRUE;