diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-03-03 23:30:37 +0600 |
---|---|---|
committer | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-03-05 18:26:01 +0600 |
commit | 5883ff60179d01b55af8df27027be6a411881745 (patch) | |
tree | 38f6d3aea4a099c3f53138d9e71bb7ec0cf2d19e /src/shared | |
parent | 9f0cd100d0dbc7c9b55e99bacb4034402a60b389 (diff) |
tree-wide: use SET_FLAG() macro to make code more clear
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/ptyfwd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/ptyfwd.c b/src/shared/ptyfwd.c index 061d31f4de..02c03b98d8 100644 --- a/src/shared/ptyfwd.c +++ b/src/shared/ptyfwd.c @@ -461,10 +461,7 @@ int pty_forward_set_ignore_vhangup(PTYForward *f, bool b) { if (!!(f->flags & PTY_FORWARD_IGNORE_VHANGUP) == b) return 0; - if (b) - f->flags |= PTY_FORWARD_IGNORE_VHANGUP; - else - f->flags &= ~PTY_FORWARD_IGNORE_VHANGUP; + SET_FLAG(f->flags, PTY_FORWARD_IGNORE_VHANGUP, b); if (!ignore_vhangup(f)) { |