From: Alan Cox Date: Tue, 29 Jan 2019 23:02:01 +0000 (+0000) Subject: tty: fix a silly braces bug X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d6baa924520d6c28d594ad3b9eaa903eeae42b2a;p=FUZIX.git tty: fix a silly braces bug --- diff --git a/Kernel/tty.c b/Kernel/tty.c index 37405a6b..92cb68e2 100644 --- a/Kernel/tty.c +++ b/Kernel/tty.c @@ -142,10 +142,10 @@ int tty_write(uint8_t minor, uint8_t rawflag, uint8_t flag) c = _ugetc(udata.u_base); if (t->termios.c_oflag & OPOST) { - if (c == '\n' && (t->termios.c_oflag & ONLCR)) + if (c == '\n' && (t->termios.c_oflag & ONLCR)) { if (tty_putc_maywait(minor, '\r', flag)) break; - else if (c == '\r' && (t->termios.c_oflag & OCRNL)) + } else if (c == '\r' && (t->termios.c_oflag & OCRNL)) c = '\n'; } if (tty_putc_maywait(minor, c, flag))