]> git.marmaro.de Git - mmh/commitdiff
Switch from using RETSIGTYPE via autoconf to void, since POSIX says that's
authorKen Hornstein <kenh@pobox.com>
Mon, 9 Jan 2012 18:26:59 +0000 (13:26 -0500)
committerKen Hornstein <kenh@pobox.com>
Mon, 9 Jan 2012 18:26:59 +0000 (13:26 -0500)
type to use for a signal handler.

17 files changed:
configure.in
h/signals.h
sbr/getans.c
sbr/lock_file.c
uip/mhlist.c
uip/mhlsbr.c
uip/mhmail.c
uip/mhn.c
uip/mhshow.c
uip/mhshowsbr.c
uip/mhstore.c
uip/mhtest.c
uip/msh.c
uip/post.c
uip/prompter.c
uip/rcvtty.c
uip/slocal.c

index 4657b50532a74032184645625197835553d8b51a..db758278313d5b04d2b11630f2f8e98f5c8fe4e5 100644 (file)
@@ -757,7 +757,6 @@ LIBS="$nmh_save_LIBS"
 dnl --------------
 dnl CHECK TYPEDEFS
 dnl --------------
-AC_TYPE_SIGNAL
 AC_TYPE_PID_T
 AC_TYPE_OFF_T
 AC_TYPE_UID_T
index 6858dff7fca1faae5e91967fa50281766eaece46..905b811b43403ad19e2f807aead820653681da92 100644 (file)
@@ -10,7 +10,7 @@
 /*
  * The type for a signal handler
  */
-typedef RETSIGTYPE (*SIGNAL_HANDLER)(int);
+typedef void (*SIGNAL_HANDLER)(int);
 
 /*
  * If not a POSIX machine, then we create our
index 3229eb57fc7fd48507473d3d52d3f5b0d65a8db3..5c70ba06b21dfcd181c4b8511988d5a5c85cb211 100644 (file)
@@ -18,7 +18,7 @@ static jmp_buf sigenv;
 /*
  * static prototypes
  */
-static RETSIGTYPE intrser (int);
+static void intrser (int);
 
 
 char **
@@ -67,7 +67,7 @@ getans (char *prompt, struct swit *ansp)
 }
 
 
-static RETSIGTYPE
+static void
 intrser (int i)
 {
     /*
index 83cf01a25324390e9e1a6a4a25f633051d0aeeee..8f2242a33bc3e9d7cc9633b3b5b65434735bbe64 100644 (file)
@@ -103,7 +103,7 @@ static int lkopen_dot (char *, int, mode_t);
 static void lockname (char *, struct lockinfo *, int);
 static void timerON (char *, int);
 static void timerOFF (int);
-static RETSIGTYPE alrmser (int);
+static void alrmser (int);
 
 #if !defined(HAVE_LIBLOCKFILE)
 static int lockit (struct lockinfo *);
@@ -585,7 +585,7 @@ timerOFF (int fd)
  * lockfiles, so another command doesn't remove them.
  */
 
-static RETSIGTYPE
+static void
 alrmser (int sig)
 {
     char *lockfile;
index d6986684aec6ece4b049daa7b165e4d7210efe0b..664be9f6b8fe5c8e7378b25abca845e25c20200c 100644 (file)
@@ -108,7 +108,7 @@ void freects_done (int) NORETURN;
 /*
  * static prototypes
  */
-static RETSIGTYPE pipeser (int);
+static void pipeser (int);
 
 
 int
@@ -371,7 +371,7 @@ do_cache:
 }
 
 
-static RETSIGTYPE
+static void
 pipeser (int i)
 {
     if (i == SIGQUIT) {
index d1204c73a60a176424eb28726d1effd51f497215..ed8c477b5f604d7089ab125e20ac5de645cfa633 100644 (file)
@@ -271,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 *, ...);
@@ -1444,7 +1444,7 @@ putch (char ch)
 }
 
 
-static RETSIGTYPE
+static void
 intrser (int i)
 {
 #ifndef RELIABLE_SIGNALS
@@ -1457,7 +1457,7 @@ intrser (int i)
 }
 
 
-static RETSIGTYPE
+static void
 pipeser (int i)
 {
 #ifndef RELIABLE_SIGNALS
@@ -1468,7 +1468,7 @@ pipeser (int i)
 }
 
 
-static RETSIGTYPE
+static void
 quitser (int i)
 {
 #ifndef RELIABLE_SIGNALS
index e5868609584aea49e60068d837bb5d189f77fb0d..377fccd065e19f06be1eb2905415d0297090f76d 100644 (file)
@@ -37,7 +37,7 @@ static char tmpfil[BUFSIZ];
 /*
  * static prototypes
  */
-static RETSIGTYPE intrser (int);
+static void intrser (int);
 
 
 int
@@ -197,7 +197,7 @@ main (int argc, char **argv)
 }
 
 
-static RETSIGTYPE
+static void
 intrser (int i)
 {
 #ifndef RELIABLE_SIGNALS
index fe728f933abef9d97da4898a1dcfc55473bd7bb4..6a46ca5da709674a9f957fd2ba25e5705ba05bac 100644 (file)
--- a/uip/mhn.c
+++ b/uip/mhn.c
@@ -196,7 +196,7 @@ void freects_done (int) NORETURN;
 /*
  * static prototypes
  */
-static RETSIGTYPE pipeser (int);
+static void pipeser (int);
 
 
 int
@@ -684,7 +684,7 @@ do_cache:
 }
 
 
-static RETSIGTYPE
+static void
 pipeser (int i)
 {
     if (i == SIGQUIT) {
index 4667e34cf07531f4b62aa01cda8c994808cfd33e..ea34914b2cb6933bea4887207b1954a3d6e9d670 100644 (file)
@@ -124,7 +124,7 @@ void freects_done (int) NORETURN;
 /*
  * static prototypes
  */
-static RETSIGTYPE pipeser (int);
+static void pipeser (int);
 
 
 int
@@ -451,7 +451,7 @@ do_cache:
 }
 
 
-static RETSIGTYPE
+static void
 pipeser (int i)
 {
     if (i == SIGQUIT) {
index 8e095910e803418b121dbce1ae27b47549f43c27..c2bb48a0bd454b017dad6a83ecb75d5d189f8785 100644 (file)
@@ -75,7 +75,7 @@ static int show_multi_aux (CT, int, int, char *);
 static int show_message_rfc822 (CT, int, int);
 static int show_partial (CT, int, int);
 static int show_external (CT, int, int);
-static RETSIGTYPE intrser (int);
+static void intrser (int);
 
 
 /*
@@ -1081,7 +1081,7 @@ show_external (CT ct, int serial, int alternate)
 }
 
 
-static RETSIGTYPE
+static void
 intrser (int i)
 {
 #ifndef RELIABLE_SIGNALS
index ff7724cd3d5c8de037684251037400c8fd6aa0a9..2646ba62955068df15915bbf263a9e75a3f26554 100644 (file)
@@ -102,7 +102,7 @@ void freects_done (int) NORETURN;
 /*
  * static prototypes
  */
-static RETSIGTYPE pipeser (int);
+static void pipeser (int);
 
 
 int
@@ -383,7 +383,7 @@ do_cache:
 }
 
 
-static RETSIGTYPE
+static void
 pipeser (int i)
 {
     if (i == SIGQUIT) {
index c884ffed46517a4635ffa5ae17ffbff47eedeade..cde45dbdf6f92249048fc7aa140235ed481beb79 100644 (file)
@@ -105,7 +105,7 @@ void freects_done (int) NORETURN;
  * static prototypes
  */
 static int write_content (CT *, char *);
-static RETSIGTYPE pipeser (int);
+static void pipeser (int);
 
 
 int
@@ -377,7 +377,7 @@ write_content (CT *cts, char *outfile)
 }
 
 
-static RETSIGTYPE
+static void
 pipeser (int i)
 {
     if (i == SIGQUIT) {
index 9e56ddd4ba869ea66cb3203339b7c80d8d7382bc..c0fc4e7ed7a20a486d53918a55bc8d78dbb259f7 100644 (file)
--- a/uip/msh.c
+++ b/uip/msh.c
@@ -195,10 +195,10 @@ static int initaux_io (struct Cmd *);
 static void fin_io (struct Cmd *, int);
 static void finaux_io (struct Cmd *);
 static void m_init (void);
-static RETSIGTYPE intrser (int);
-static RETSIGTYPE pipeser (int);
-static RETSIGTYPE quitser (int);
-static RETSIGTYPE alrmser (int);
+static void intrser (int);
+static void pipeser (int);
+static void quitser (int);
+static void alrmser (int);
 static int pINI (void);
 static int pQRY (char *, int);
 static int pQRY1 (int);
@@ -1618,7 +1618,7 @@ seq_setcur (struct msgs *mp, int msgnum)
 
 
 
-static RETSIGTYPE
+static void
 intrser (int i)
 {
 #ifndef RELIABLE_SIGNALS
@@ -1635,7 +1635,7 @@ intrser (int i)
 }
 
 
-static RETSIGTYPE
+static void
 pipeser (int i)
 {
 #ifndef RELIABLE_SIGNALS
@@ -1654,7 +1654,7 @@ pipeser (int i)
 }
 
 
-static RETSIGTYPE
+static void
 quitser (int i)
 {
 #ifndef RELIABLE_SIGNALS
@@ -1671,7 +1671,7 @@ quitser (int i)
 }
 
 
-static RETSIGTYPE
+static void
 alrmser (int i)
 {
     longjmp (peerenv, DONE);
index 419b86c4a1fff3f0555820f171616fa6851fff14..0d71c31cbac59d0436899773472d898c819eaf4a 100644 (file)
@@ -1611,7 +1611,7 @@ do_text (char *file, int fd)
  * SIGNAL HANDLING
  */
 
-static RETSIGTYPE
+static void
 sigser (int i)
 {
 #ifndef RELIABLE_SIGNALS
index 459fa97c3aa53f3ae31e8373b095cbb1814a2cd7..872d7423c62a847b29a2a354fd4a072e5740708a 100644 (file)
@@ -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
@@ -393,7 +393,7 @@ getln (char *buffer, int n)
 }
 
 
-static RETSIGTYPE
+static void
 intrser (int i)
 {
 #ifndef        RELIABLE_SIGNALS
index 07053d2cf0728b3fdc9b82ed8c9bec3077ac65fd..6c08dae28d9508bfcdc4a78382d6bda73d0f7078 100644 (file)
@@ -78,7 +78,7 @@ char *getusername(void);
 /*
  * static prototypes
  */
-static RETSIGTYPE alrmser (int);
+static void alrmser (int);
 static int message_fd (char **);
 static int header_fd (void);
 static void alert (char *, int);
@@ -204,7 +204,7 @@ main (int argc, char **argv)
 }
 
 
-static RETSIGTYPE
+static void
 alrmser (int i)
 {
 #ifndef RELIABLE_SIGNALS
index f10c76dec93f161c5dd8a101218388dd2113496a..6b4c306ba7250e88701ab661d7e1878028d443b7 100644 (file)
@@ -190,7 +190,7 @@ static int timely (char *, char *);
 static int usr_file (int, char *, int);
 static int usr_pipe (int, char *, char *, char **, int);
 static int usr_folder (int, char *);
-static RETSIGTYPE alrmser (int);
+static void alrmser (int);
 static void get_sender (char *, char **);
 static int copy_message (int, char *, int);
 static void verbose_printf (char *fmt, ...);
@@ -1211,7 +1211,7 @@ usr_pipe (int fd, char *cmd, char *pgm, char **vec, int suppress)
 }
 
 
-static RETSIGTYPE
+static void
 alrmser (int i)
 {
 #ifndef RELIABLE_SIGNALS