Fix identation
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user