X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fprompter.c;h=795e4724d4966061c274ef7423606896a15ad555;hb=8e79ce1919d9cf54f101a812e0fd70a33286b9f3;hp=459fa97c3aa53f3ae31e8373b095cbb1814a2cd7;hpb=ed759f583c7c5b2487ee5317d3ad4bc791a1d249;p=mmh diff --git a/uip/prompter.c b/uip/prompter.c index 459fa97..795e472 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -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 @@ -109,10 +109,10 @@ main (int argc, char **argv) snprintf (buffer, sizeof(buffer), "%s [switches] file", invo_name); print_help (buffer, switches, 1); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case ERASESW: if (!(erasep = *argp++) || *erasep == '-') @@ -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);