summaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-03-30 18:41:50 +0200
committerMarcel Raad <raad@teamviewer.com>2017-03-30 18:45:28 +0200
commite358a626f8e8f2f8e35f83d5021bed8fc6567149 (patch)
treecd0216fc4ba61a6b29610625f5ae436ea2a70f4f /lib/ssh.c
parent4a5b900cb1d220183abd3f71897b8039f7f5146f (diff)
downloadcurl-e358a626f8e8f2f8e35f83d5021bed8fc6567149.tar.gz
ssh: fix narrowing conversion warning
'left' is used as time_t but declared as long. MinGW complains: error: conversion to 'long int' from 'time_t {aka long long int}' may alter its value [-Werror=conversion] Changed the declaration to time_t.
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 6cd5d8769..72fa06af7 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -2822,7 +2822,7 @@ static CURLcode ssh_block_statemach(struct connectdata *conn,
while((sshc->state != SSH_STOP) && !result) {
bool block;
- long left;
+ time_t left;
struct timeval now = Curl_tvnow();
result = ssh_statemach_act(conn, &block);