]> diplodocus.org Git - nmh/blobdiff - sbr/read_yes_or_no_if_tty.c
scansbr.c: Move interface to own file.
[nmh] / sbr / read_yes_or_no_if_tty.c
index 2427f59caf18247c233afa60c96ae0bdd5d7a1c5..03a3c0b56eb4057a59afd239ec3471ea889cee12 100644 (file)
@@ -5,7 +5,9 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#include "h/mh.h"
+#include "read_yes_or_no_if_tty.h"
+#include "read_switch.h"
 
 
 int
@@ -16,5 +18,5 @@ read_yes_or_no_if_tty (const char *prompt)
     if (interactive < 0)
         interactive = isatty (fileno (stdin));
 
-    return (interactive ? read_switch (prompt, anoyes) : 1);
+    return interactive ? read_switch(prompt, anoyes) : 1;
 }