Fix identation

This commit is contained in:
ben
2025-11-14 23:04:39 +01:00
parent 7ecdc0bb91
commit 9cb9b2058d

View File

@@ -133,15 +133,15 @@ restart:
/* /*
* Fix strange behaviour: a file must be open to prevent echo * Fix strange behaviour: a file must be open to prevent echo
*/ */
if (!(flags & RPP_ECHO_ON)) if (!(flags & RPP_ECHO_ON)) {
open(_PATH_TTY, O_RDONLY); open(_PATH_TTY, O_RDONLY);
}
/* /*
* Read and write to /dev/tty if available. If not, read from * Read and write to /dev/tty if available. If not, read from
* stdin and write to stderr unless a tty is required. * stdin and write to stderr unless a tty is required.
*/ */
if ((flags & RPP_STDIN) || if ((flags & RPP_STDIN) || (input = output = open(_PATH_TTY, O_RDWR)) == -1) {
(input = output = open(_PATH_TTY, O_RDWR)) == -1) {
if (flags & RPP_REQUIRE_TTY) { if (flags & RPP_REQUIRE_TTY) {
errno = ENOTTY; errno = ENOTTY;
return(NULL); return(NULL);