Remove unused code
[mmh] / sbr / getanswer.c
index d0ec6f8..4de8a89 100644 (file)
@@ -1,23 +1,23 @@
-
 /*
- * getanswer.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
- * complete copyright information.
- */
+** getanswer.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
+** complete copyright information.
+*/
 
 #include <h/mh.h>
 #include <stdio.h>
+#include <unistd.h>
 
 
 int
-getanswer (char *prompt)
+getanswer(char *prompt)
 {
-    static int interactive = -1;
+       static int interactive = -1;
 
-    if (interactive < 0)
-       interactive = isatty (fileno (stdin)) ? 1 : 0;
+       if (interactive < 0)
+               interactive = isatty(fileno(stdin)) ? 1 : 0;
 
-    return (interactive ? gans (prompt, anoyes) : 1);
+       return (interactive ? gans(prompt, anoyes) : 1);
 }