X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmsh.c;h=f6d1a362b4cc9f2c59125e57957418b549136e4e;hb=8a87f7b5fd5622dcde0fc4b48d93157616b496f0;hp=3a5cc976a49e8ae8c787ec1df0a6739207d0054e;hpb=c2191f6961409263271aaeb0f9685e10492389a8;p=mmh diff --git a/uip/msh.c b/uip/msh.c index 3a5cc97..f6d1a36 100644 --- a/uip/msh.c +++ b/uip/msh.c @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include #include @@ -153,8 +153,6 @@ int told_to_quit; /* SIGQUIT detected */ /* * prototypes */ -int SOprintf (char *, ...); /* from termsbr.c */ -int sc_width (void); /* from termsbr.c */ void fsetup (char *); void setup (char *); FILE *msh_ready (int, int); @@ -805,6 +803,7 @@ m_gMsgs (int n) FILE * msh_ready (int msgnum, int full) { + NMH_UNUSED (full); register int msgp; int fd; char *cp; @@ -1582,6 +1581,7 @@ seq_setcur (struct msgs *mp, int msgnum) static void intrser (int i) { + NMH_UNUSED (i); discard (stdout); interrupted++; } @@ -1590,6 +1590,7 @@ intrser (int i) static void pipeser (int i) { + NMH_UNUSED (i); if (broken_pipe++ == 0) fprintf (stderr, "broken pipe\n"); told_to_quit++; @@ -1600,6 +1601,7 @@ pipeser (int i) static void quitser (int i) { + NMH_UNUSED (i); told_to_quit++; interrupted++; } @@ -1608,6 +1610,7 @@ quitser (int i) static void alrmser (int i) { + NMH_UNUSED (i); longjmp (peerenv, DONE); } @@ -1672,6 +1675,7 @@ pINI (void) static int pQRY (char *str, int scansw) { + NMH_UNUSED (str); if (pQRY1 (scansw) == NOTOK || pQRY2 () == NOTOK) return NOTOK; @@ -1913,7 +1917,7 @@ pFIN (void) { int status; - switch (setjmp (peerenv)) { + switch (m_setjmp (peerenv)) { case OK: SIGNAL (SIGALRM, alrmser); alarm (ALARM);