|
@@ -147,8 +147,8 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
|
|
|
result = CURLE_OPERATION_TIMEDOUT;
|
|
|
break;
|
|
|
}
|
|
|
- if(!timeout_ms || timeout_ms > TIME_T_MAX)
|
|
|
- timeout_ms = TIME_T_MAX;
|
|
|
+ if(!timeout_ms)
|
|
|
+ timeout_ms = TIMEDIFF_T_MAX;
|
|
|
|
|
|
/* Don't busyloop. The entire loop thing is a work-around as it causes a
|
|
|
BLOCKING behavior which is a NO-NO. This function should rather be
|
|
@@ -156,7 +156,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
|
|
|
possible to send now will be sent in the doing function repeatedly
|
|
|
until the entire request is sent.
|
|
|
*/
|
|
|
- what = SOCKET_WRITABLE(sockfd, (time_t)timeout_ms);
|
|
|
+ what = SOCKET_WRITABLE(sockfd, timeout_ms);
|
|
|
if(what < 0) {
|
|
|
result = CURLE_SEND_ERROR;
|
|
|
break;
|