Remove unused code
[mmh] / sbr / getans.c
index af882d5..f3cea27 100644 (file)
@@ -10,6 +10,7 @@
 #include <h/signals.h>
 #include <setjmp.h>
 #include <signal.h>
+#include <unistd.h>
 
 static char ansbuf[BUFSIZ];
 static jmp_buf sigenv;
@@ -17,7 +18,7 @@ static jmp_buf sigenv;
 /*
 ** static prototypes
 */
-static RETSIGTYPE intrser(int);
+static void intrser(int);
 
 
 char **
@@ -66,11 +67,11 @@ getans(char *prompt, struct swit *ansp)
 }
 
 
-static RETSIGTYPE
+static void
 intrser(int i)
 {
        /*
        ** should this be siglongjmp?
        */
-       longjmp(sigenv, 1);
+       close(STDIN_FILENO);
 }