X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/23f2b007ecac94848616420b27f0819ea559507e..052d7bfb0a9a541c6975c3ed679dd3ac9e5c0886:/sbr/read_yes_or_no_if_tty.c diff --git a/sbr/read_yes_or_no_if_tty.c b/sbr/read_yes_or_no_if_tty.c index 07f1122a..2427f59c 100644 --- a/sbr/read_yes_or_no_if_tty.c +++ b/sbr/read_yes_or_no_if_tty.c @@ -1,6 +1,4 @@ - -/* - * read_yes_or_no_if_tty.c -- get a yes/no answer from the user +/* read_yes_or_no_if_tty.c -- get a yes/no answer from the user * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -16,7 +14,7 @@ read_yes_or_no_if_tty (const char *prompt) static int interactive = -1; if (interactive < 0) - interactive = isatty (fileno (stdin)) ? 1 : 0; + interactive = isatty (fileno (stdin)); return (interactive ? read_switch (prompt, anoyes) : 1); }