projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is mmh-0.2
[mmh]
/
sbr
/
getans.c
diff --git
a/sbr/getans.c
b/sbr/getans.c
index
af882d5
..
f3cea27
100644
(file)
--- a/
sbr/getans.c
+++ b/
sbr/getans.c
@@
-10,6
+10,7
@@
#include <h/signals.h>
#include <setjmp.h>
#include <signal.h>
#include <h/signals.h>
#include <setjmp.h>
#include <signal.h>
+#include <unistd.h>
static char ansbuf[BUFSIZ];
static jmp_buf sigenv;
static char ansbuf[BUFSIZ];
static jmp_buf sigenv;
@@
-17,7
+18,7
@@
static jmp_buf sigenv;
/*
** static prototypes
*/
/*
** static prototypes
*/
-static RETSIGTYPE intrser(int);
+static void intrser(int);
char **
char **
@@
-66,11
+67,11
@@
getans(char *prompt, struct swit *ansp)
}
}
-static RETSIGTYPE
+static void
intrser(int i)
{
/*
** should this be siglongjmp?
*/
intrser(int i)
{
/*
** should this be siglongjmp?
*/
- longjmp(sigenv, 1);
+ close(STDIN_FILENO);
}
}