summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2016-03-03 23:30:37 +0600
committerAlexander Kuleshov <kuleshovmail@gmail.com>2016-03-05 18:26:01 +0600
commit5883ff60179d01b55af8df27027be6a411881745 (patch)
tree38f6d3aea4a099c3f53138d9e71bb7ec0cf2d19e /src/shared
parent9f0cd100d0dbc7c9b55e99bacb4034402a60b389 (diff)
tree-wide: use SET_FLAG() macro to make code more clear
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ptyfwd.c5
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)) {