diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-03-30 18:41:50 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-03-30 18:45:28 +0200 |
commit | e358a626f8e8f2f8e35f83d5021bed8fc6567149 (patch) | |
tree | cd0216fc4ba61a6b29610625f5ae436ea2a70f4f | |
parent | 4a5b900cb1d220183abd3f71897b8039f7f5146f (diff) |
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.
-rw-r--r-- | lib/ssh.c | 2 |
1 files changed, 1 insertions, 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); |