diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-09-12 14:43:58 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-09-12 14:43:58 +1000 |
commit | 8f750ccfc07acb8aa98be5a5dd935033a6468cfd (patch) | |
tree | f7f3c3b173a1556e1cf8e4dcc7f9b1542b2de5f7 | |
parent | 7050896e7395866278c19c2ff080c26152619d1d (diff) |
Remove no-op brackets to resync with upstream.
-rw-r--r-- | sshpty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -155,11 +155,11 @@ pty_make_controlling_tty(int *ttyfd, const char *tty) | |||
155 | error("SETPGRP %s",strerror(errno)); | 155 | error("SETPGRP %s",strerror(errno)); |
156 | #endif /* NEED_SETPGRP */ | 156 | #endif /* NEED_SETPGRP */ |
157 | fd = open(tty, O_RDWR); | 157 | fd = open(tty, O_RDWR); |
158 | if (fd < 0) { | 158 | if (fd < 0) |
159 | error("%.100s: %.100s", tty, strerror(errno)); | 159 | error("%.100s: %.100s", tty, strerror(errno)); |
160 | } else { | 160 | else |
161 | close(fd); | 161 | close(fd); |
162 | } | 162 | |
163 | /* Verify that we now have a controlling tty. */ | 163 | /* Verify that we now have a controlling tty. */ |
164 | fd = open(_PATH_TTY, O_WRONLY); | 164 | fd = open(_PATH_TTY, O_WRONLY); |
165 | if (fd < 0) | 165 | if (fd < 0) |