mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:43:52 +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
|
|
@ -57,7 +57,7 @@ int Curl_blockread_all(struct connectdata *conn, /* connection data */
|
|||
ssize_t nread;
|
||||
ssize_t allread = 0;
|
||||
int result;
|
||||
long timeleft;
|
||||
time_t timeleft;
|
||||
*n = 0;
|
||||
for(;;) {
|
||||
timeleft = Curl_timeleft(conn->data, NULL, TRUE);
|
||||
|
|
@ -376,7 +376,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
|||
CURLcode code;
|
||||
curl_socket_t sock = conn->sock[sockindex];
|
||||
struct Curl_easy *data = conn->data;
|
||||
long timeout;
|
||||
time_t timeout;
|
||||
bool socks5_resolve_local = (conn->proxytype == CURLPROXY_SOCKS5)?TRUE:FALSE;
|
||||
const size_t hostname_len = strlen(hostname);
|
||||
ssize_t len = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue