aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-20 15:11:51 +0000
committerYang Tse <yangsita@gmail.com>2007-10-20 15:11:51 +0000
commit5c8fc7dce9668a141a01781159817552a7cb4ef8 (patch)
treeeede911330314f468095d4938c0f8c79993d4395 /lib
parente8d3710aff10014acb7adbf2bb721dbd53258e4f (diff)
Fix compiler warning: conversion from "int" to "unsigned short" may lose significant bits
Diffstat (limited to 'lib')
-rw-r--r--lib/hostares.c2
-rw-r--r--lib/url.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostares.c b/lib/hostares.c
index 81707ac7c..6a70c8276 100644
--- a/lib/hostares.c
+++ b/lib/hostares.c
@@ -255,7 +255,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
tvp = ares_timeout(data->state.areschannel, &store, &tv);
/* use the timeout period ares returned to us above */
- ares_waitperform(conn, tvp->tv_sec * 1000 + tvp->tv_usec/1000);
+ ares_waitperform(conn, (int)(tvp->tv_sec * 1000 + tvp->tv_usec/1000));
if(conn->async.done)
break;
diff --git a/lib/url.c b/lib/url.c
index 6f6d8c226..e7ef80246 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3101,7 +3101,7 @@ static CURLcode setup_connection_internals(struct SessionHandle *data,
}
conn->port = p->defport;
- conn->remote_port = p->defport;
+ conn->remote_port = (unsigned short)p->defport;
conn->protocol |= p->protocol;
return CURLE_OK;
}