X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dcbbebd768c6444e2fbf83de2b3dc6c76b513a54..670a0d84c25b458bbb348d2a1ecee178cfa6c226:/sbr/signals.c diff --git a/sbr/signals.c b/sbr/signals.c index accb6950..36ba9d02 100644 --- a/sbr/signals.c +++ b/sbr/signals.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/signals.h" #include "m_mktemp.h" @@ -39,8 +39,8 @@ SIGNAL (int sig, SIGNAL_HANDLER func) # endif } if (sigaction(sig, &act, &oact) < 0) - return (SIG_ERR); - return (oact.sa_handler); + return SIG_ERR; + return oact.sa_handler; } @@ -56,7 +56,7 @@ SIGNAL2 (int sig, SIGNAL_HANDLER func) struct sigaction act, oact; if (sigaction(sig, NULL, &oact) < 0) - return (SIG_ERR); + return SIG_ERR; if (oact.sa_handler != SIG_IGN) { act.sa_handler = func; sigemptyset(&act.sa_mask); @@ -72,9 +72,9 @@ SIGNAL2 (int sig, SIGNAL_HANDLER func) # endif } if (sigaction(sig, &act, &oact) < 0) - return (SIG_ERR); + return SIG_ERR; } - return (oact.sa_handler); + return oact.sa_handler; } @@ -82,7 +82,8 @@ SIGNAL2 (int sig, SIGNAL_HANDLER func) * For use by nmh_init(). */ int -setup_signal_handlers(void) { +setup_signal_handlers(void) +{ /* * Catch HUP, INT, QUIT, and TERM so that we can clean up tmp * files when the user terminates the process early. And also a