mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:23:33 +03:00
lib: fix compiler warnings after de4de4e3c7
Visual C++ now complains about implicitly casting time_t (64-bit) to long (32-bit). Fix this by changing some variables from long to time_t, or explicitly casting to long where the public interface would be affected. Closes #1131
This commit is contained in:
parent
0b8d682f81
commit
21aa32d30d
18 changed files with 54 additions and 54 deletions
|
|
@ -35,9 +35,9 @@ CURLcode Curl_connecthost(struct connectdata *conn,
|
|||
|
||||
/* generic function that returns how much time there's left to run, according
|
||||
to the timeouts set */
|
||||
long Curl_timeleft(struct Curl_easy *data,
|
||||
struct timeval *nowp,
|
||||
bool duringconnect);
|
||||
time_t Curl_timeleft(struct Curl_easy *data,
|
||||
struct timeval *nowp,
|
||||
bool duringconnect);
|
||||
|
||||
#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */
|
||||
#define HAPPY_EYEBALLS_TIMEOUT 200 /* milliseconds to wait between
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue