X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fprompter.c;h=ecfd05f7d4cee2cfcc5dd41bc27299d44843eaa1;hb=907d56122e31657df15e9bc79460210deedaefd9;hp=459fa97c3aa53f3ae31e8373b095cbb1814a2cd7;hpb=ed759f583c7c5b2487ee5317d3ad4bc791a1d249;p=mmh diff --git a/uip/prompter.c b/uip/prompter.c index 459fa97..ecfd05f 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include @@ -70,7 +70,7 @@ static jmp_buf sigenv; int getln (char *, int); static int chrcnv (char *); static void chrdsp (char *, char); -static RETSIGTYPE intrser (int); +static void intrser (int); int @@ -353,7 +353,7 @@ getln (char *buffer, int n) cp = buffer; *cp = 0; - switch (setjmp (sigenv)) { + switch (m_setjmp (sigenv)) { case OK: wtuser = 1; break; @@ -393,12 +393,10 @@ getln (char *buffer, int n) } -static RETSIGTYPE +static void intrser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGINT, intrser); -#endif + NMH_UNUSED (i); if (wtuser) longjmp (sigenv, NOTOK);