diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-04-06 19:34:44 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-04-06 19:34:44 +0200 |
commit | aa2e9e90173bb379ccff800c9019d6626b69c452 (patch) | |
tree | e0712ffc17af616adfe40bb0377f293008838f2a | |
parent | d2bdc98754cf3c30ac2afa4cf708337cf3f129a1 (diff) | |
download | curl-aa2e9e90173bb379ccff800c9019d6626b69c452.tar.gz |
gtls: fix compiler warning
Curl_timeleft returns time_t instead of long since commit
21aa32d30dbf319f2d336e0cb68d3a3235869fbb.
-rw-r--r-- | lib/vtls/gtls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index f41036049..d705c72d8 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -278,7 +278,7 @@ static CURLcode handshake(struct connectdata *conn, struct ssl_connect_data *connssl = &conn->ssl[sockindex]; gnutls_session_t session = conn->ssl[sockindex].session; curl_socket_t sockfd = conn->sock[sockindex]; - long timeout_ms; + time_t timeout_ms; int rc; int what; @@ -314,7 +314,7 @@ static CURLcode handshake(struct connectdata *conn, return CURLE_OK; else if(timeout_ms) { /* timeout */ - failf(data, "SSL connection timeout at %ld", timeout_ms); + failf(data, "SSL connection timeout at %ld", (long)timeout_ms); return CURLE_OPERATION_TIMEDOUT; } } |