fix warning

This commit is contained in:
Sébastien Loriot 2023-05-31 14:27:53 +02:00
parent ab0b31fed3
commit a08fd315e5
1 changed files with 1 additions and 3 deletions

View File

@ -319,7 +319,6 @@ bool pull_file(ssh_session &session,
const char* from_path, const char* from_path,
const char* to_path) const char* to_path)
{ {
int rc;
std::size_t size; std::size_t size;
std::size_t processed = 0; std::size_t processed = 0;
std::vector<char> buffer; std::vector<char> buffer;
@ -386,10 +385,9 @@ bool explore_the_galaxy(ssh_session &session,
QStringList& files) QStringList& files)
{ {
ssh_channel channel; ssh_channel channel;
int rc;
channel = ssh_channel_new(session); channel = ssh_channel_new(session);
if (channel == nullptr) return false; if (channel == nullptr) return false;
rc = ssh_channel_open_session(channel); int rc = ssh_channel_open_session(channel);
if (rc != SSH_OK) if (rc != SSH_OK)
{ {
ssh_channel_free(channel); ssh_channel_free(channel);