From e358a626f8e8f2f8e35f83d5021bed8fc6567149 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Thu, 30 Mar 2017 18:41:50 +0200 Subject: 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. --- lib/ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ssh.c') 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); -- cgit v1.2.3