Skip to content

Commit

Permalink
[ssh] Formatted [[nodiscard]]
Browse files Browse the repository at this point in the history
  • Loading branch information
Sploder12 committed Oct 18, 2024
1 parent a965e28 commit da5d0fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/platform/console/unix_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ mp::UnixConsole::UnixConsole(ssh_channel channel, UnixTerminal* term) : term{ter
term_type = (term_type == nullptr) ? "xterm" : term_type;

update_local_pty_size(term->cout_fd());

ssh_channel_request_pty_size(channel, term_type, local_pty_size.columns, local_pty_size.rows);

// set stdin to Raw Mode after libssh inherits sane settings from stdin.
Expand Down
3 changes: 1 addition & 2 deletions src/sshfs_mount/sshfs_mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class SshfsMount

void stop();

[[nodiscard]]
bool alive() const;
[[nodiscard]] bool alive() const;

private:
std::atomic<bool> running;
Expand Down

0 comments on commit da5d0fc

Please sign in to comment.