]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Remove no-op brackets to resync with upstream.
authorDarren Tucker <dtucker@zip.com.au>
Mon, 12 Sep 2016 04:43:58 +0000 (14:43 +1000)
committerDarren Tucker <dtucker@zip.com.au>
Mon, 12 Sep 2016 04:43:58 +0000 (14:43 +1000)
sshpty.c

index 15da8c649746fbb9216c96d2250ef49efcbe7643..b8457d9137e8bec4259584a70f66f214af20c9ba 100644 (file)
--- a/sshpty.c
+++ b/sshpty.c
@@ -155,11 +155,11 @@ pty_make_controlling_tty(int *ttyfd, const char *tty)
                error("SETPGRP %s",strerror(errno));
 #endif /* NEED_SETPGRP */
        fd = open(tty, O_RDWR);
-       if (fd < 0) {
+       if (fd < 0)
                error("%.100s: %.100s", tty, strerror(errno));
-       } else {
+       else
                close(fd);
-       }
+
        /* Verify that we now have a controlling tty. */
        fd = open(_PATH_TTY, O_WRONLY);
        if (fd < 0)