]> diplodocus.org Git - nmh/blobdiff - sbr/read_yes_or_no_if_tty.c
sbr/utils.c: Delete dead-code open_form(); not called.
[nmh] / sbr / read_yes_or_no_if_tty.c
index 07f1122ac65d36cc4ec4a8140495288d897891e5..2427f59caf18247c233afa60c96ae0bdd5d7a1c5 100644 (file)
@@ -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);
 }