summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 47644c4..0fd4c28 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -427,13 +427,10 @@ setup_readline(void)
static jmp_buf jbuf;
/* ARGSUSED */
-static RETSIGTYPE
+static void
onintr(int sig)
{
longjmp(jbuf, 1);
-#if RETSIGTYPE != void
- return 0;
-#endif
}
@@ -444,7 +441,7 @@ call_readline(char *prompt)
{
size_t n;
char *p, *q;
- RETSIGTYPE (*old_inthandler)(int);
+ void (*old_inthandler)(int);
old_inthandler = signal(SIGINT, onintr);
if (setjmp(jbuf)) {
#ifdef HAVE_SIGRELSE