aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2016-11-19 14:09:03 +0100
committerMarcel Raad <raad@teamviewer.com>2016-11-19 14:09:03 +0100
commitc0ae2dbb869bf97d273ae0a4cb66caa020876d0f (patch)
tree0cfd780ee2ffe14ee2d761f8254bb2a139a4adf1 /lib/vtls
parent21aa32d30dbf319f2d336e0cb68d3a3235869fbb (diff)
vtls: fix build warnings
Fix warnings about conversions from long to time_t in openssl.c and schannel.c. Follow-up to de4de4e3c7c
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/openssl.c2
-rw-r--r--lib/vtls/schannel.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 8874632aa..ae1a54f05 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -2957,7 +2957,7 @@ static CURLcode ossl_connect_common(struct connectdata *conn,
struct Curl_easy *data = conn->data;
struct ssl_connect_data *connssl = &conn->ssl[sockindex];
curl_socket_t sockfd = conn->sock[sockindex];
- long timeout_ms;
+ time_t timeout_ms;
int what;
/* check if the connection has already been established */
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 528db01f9..6044bf1b0 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -774,7 +774,7 @@ schannel_connect_common(struct connectdata *conn, int sockindex,
struct Curl_easy *data = conn->data;
struct ssl_connect_data *connssl = &conn->ssl[sockindex];
curl_socket_t sockfd = conn->sock[sockindex];
- long timeout_ms;
+ time_t timeout_ms;
int what;
/* check if the connection has already been established */
@@ -962,7 +962,7 @@ schannel_send(struct connectdata *conn, int sockindex,
/* send entire message or fail */
while(len > (size_t)written) {
ssize_t this_write;
- long timeleft;
+ time_t timeleft;
int what;
this_write = 0;