1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

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.
This commit is contained in:
Marcel Raad 2017-03-30 18:41:50 +02:00
parent 4a5b900cb1
commit e358a626f8
No known key found for this signature in database
GPG Key ID: B4668817AE6D6CD4

View File

@ -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);