mirror of
https://github.com/curl/curl.git
synced 2026-05-30 14:17:29 +03: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:
parent
4a5b900cb1
commit
e358a626f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue