X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5dd6771b28c257af405d7248639ed0e3bcdce38b..7e5bac1a416e400bd3c8941b1c312577f2d9e9e4:/sbr/getans.c diff --git a/sbr/getans.c b/sbr/getans.c index 3229eb57..95e34c42 100644 --- a/sbr/getans.c +++ b/sbr/getans.c @@ -9,7 +9,7 @@ #include #include -#include +#include #include static char ansbuf[BUFSIZ]; @@ -18,7 +18,7 @@ static jmp_buf sigenv; /* * static prototypes */ -static RETSIGTYPE intrser (int); +static void intrser (int); char ** @@ -28,7 +28,7 @@ getans (char *prompt, struct swit *ansp) SIGNAL_HANDLER istat = NULL; char *cp, **cpp; - if (!(setjmp (sigenv))) { + if (!(m_setjmp (sigenv))) { istat = SIGNAL (SIGINT, intrser); } else { SIGNAL (SIGINT, istat); @@ -67,9 +67,11 @@ getans (char *prompt, struct swit *ansp) } -static RETSIGTYPE +static void intrser (int i) { + NMH_UNUSED (i); + /* * should this be siglongjmp? */