X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhlsbr.c;h=4cd3770e298a1317d4b090a4f64f3bb9282f52b0;hb=a2469f5ecbca3a179251ac9b777b561bc5245d4c;hp=a386771ba224f7b06b66c3c8658360e1fbbc1ef9;hpb=8cf1d92e52d3feac4ed32ec733e2c0ed7f384e86;p=mmh diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index a386771..4cd3770 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -2,8 +2,6 @@ /* * mhlsbr.c -- main routines for nmh message lister * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -273,9 +271,9 @@ static void putcomp (struct mcomp *, struct mcomp *, int); static char *oneline (char *, long); static void putstr (char *); static void putch (char); -static RETSIGTYPE intrser (int); -static RETSIGTYPE pipeser (int); -static RETSIGTYPE quitser (int); +static void intrser (int); +static void pipeser (int); +static void quitser (int); static void face_format (struct mcomp *); static int doface (struct mcomp *); static void mhladios (char *, char *, ...); @@ -1446,37 +1444,25 @@ putch (char ch) } -static RETSIGTYPE +static void intrser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGINT, intrser); -#endif - discard (stdout); putchar ('\n'); longjmp (env, DONE); } -static RETSIGTYPE +static void pipeser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGPIPE, pipeser); -#endif - done (NOTOK); } -static RETSIGTYPE +static void quitser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGQUIT, quitser); -#endif - putchar ('\n'); fflush (stdout); done (NOTOK); @@ -1517,10 +1503,7 @@ face_format (struct mcomp *c1) #include #include #include - -#ifdef HAVE_ARPA_INET_H -# include -#endif +#include static int doface (struct mcomp *c1)