aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-01 08:10:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-07-01 08:10:21 +0000
commit090b89cc76acfa0bb388a9eb425dfaa81f62b5ae (patch)
treedda4228af299fcdf4da891736c9837fabbcaf97e /lib/connect.c
parentf05d47ddd6d706dcda05504da8c90a111d53f67b (diff)
Variable type cleanups to please the picky MIPSPro compiler.
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 46d7d8e14..ce3d40cf1 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -219,7 +219,7 @@ int waitconnect(curl_socket_t sockfd, /* socket */
FD_ZERO(&errfd);
FD_SET(sockfd, &errfd);
- interval.tv_sec = timeout_msec/1000;
+ interval.tv_sec = (int)(timeout_msec/1000);
timeout_msec -= interval.tv_sec*1000;
interval.tv_usec = timeout_msec*1000;
@@ -674,7 +674,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
*connected = FALSE; /* default to not connected */
if(data->set.timeout || data->set.connecttimeout) {
- double has_passed;
+ long has_passed;
/* Evaluate in milliseconds how much time that has passed */
has_passed = Curl_tvdiff(Curl_tvnow(), data->progress.start);
@@ -696,7 +696,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
timeout_ms = data->set.connecttimeout*1000;
/* subtract the passed time */
- timeout_ms -= (long)has_passed;
+ timeout_ms -= has_passed;
if(timeout_ms < 0) {
/* a precaution, no need to continue if time already is up */