]> git.marmaro.de Git - mmh/blobdiff - sbr/getanswer.c
Remove unused code
[mmh] / sbr / getanswer.c
index 47072556ca75aa1f67f1be4575468c76c7310b81..4de8a89260f9393779155670847412146b5e59fa 100644 (file)
@@ -8,15 +8,16 @@
 
 #include <h/mh.h>
 #include <stdio.h>
+#include <unistd.h>
 
 
 int
-getanswer (char *prompt)
+getanswer(char *prompt)
 {
        static int interactive = -1;
 
        if (interactive < 0)
-               interactive = isatty (fileno (stdin)) ? 1 : 0;
+               interactive = isatty(fileno(stdin)) ? 1 : 0;
 
-       return (interactive ? gans (prompt, anoyes) : 1);
+       return (interactive ? gans(prompt, anoyes) : 1);
 }