From 91d4a3cffdf983cd0915f4610b4e0a9bd47f31ae Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:03:12 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- adjbacklight.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'adjbacklight.c') diff --git a/adjbacklight.c b/adjbacklight.c index 57495d8..ba503d5 100644 --- a/adjbacklight.c +++ b/adjbacklight.c @@ -261,8 +261,8 @@ init_terminal(pid_t *pid, struct termios *saved_stty) int i; printf("\n\n"); - printf("If the program is abnormally aborted the may be some residual\n"); - printf("effects on the terminal. the following commands should reset it:\n"); + printf("If the program is abnormally aborted there may be some residual\n"); + printf("effects on the terminal. The following commands should reset it:\n"); printf("\n"); printf(" stty sane\n"); printf(" printf '\\ec'\n"); @@ -428,17 +428,17 @@ main(int argc, char *argv[]) } done: - if (isinteractive && pid) { - /* Show cursor */ - printf("%s", "\033[?25h"); - fflush(stdout); - - /* `stty icanon echo` */ - if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &saved_stty)) { - fprintf(stderr, "%s: tcsetattr : %s\n", argv0, strerror(errno)); - return 1; - } - } - - return 0; + if (isinteractive && pid) { + /* Show cursor */ + printf("%s", "\033[?25h"); + fflush(stdout); + + /* `stty icanon echo` */ + if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &saved_stty)) { + fprintf(stderr, "%s: tcsetattr : %s\n", argv0, strerror(errno)); + return 1; + } + } + + return 0; } -- cgit v1.2.3-70-g09d2