projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EXIT AUTOCRAP \o/
[apps/madmutt.git]
/
lib-sys
/
mutt_signal.c
diff --git
a/lib-sys/mutt_signal.c
b/lib-sys/mutt_signal.c
index
55b3f02
..
4823e71
100644
(file)
--- a/
lib-sys/mutt_signal.c
+++ b/
lib-sys/mutt_signal.c
@@
-7,15
+7,6
@@
* please see the file GPL in the top level source directory.
*/
* please see the file GPL in the top level source directory.
*/
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <signal.h>
-#include <string.h>
-#include <sys/wait.h>
-#include <errno.h>
-
#include <lib-lib/lib-lib.h>
#include <lib-ui/curses.h>
#include <lib-lib/lib-lib.h>
#include <lib-ui/curses.h>
@@
-29,7
+20,7
@@
static struct sigaction SysOldQuit;
static int IsEndwin = 0;
/* Attempt to catch "ordinary" signals and shut down gracefully. */
static int IsEndwin = 0;
/* Attempt to catch "ordinary" signals and shut down gracefully. */
-
RETSIGTYPE
exit_handler (int sig)
+
static void
exit_handler (int sig)
{
curs_set (1);
endwin (); /* just to be safe */
{
curs_set (1);
endwin (); /* just to be safe */
@@
-49,12
+40,12
@@
RETSIGTYPE exit_handler (int sig)
exit (0);
}
exit (0);
}
-
RETSIGTYPE
chld_handler(int sig __attribute__((unused)))
+
static void
chld_handler(int sig __attribute__((unused)))
{
/* empty */
}
{
/* empty */
}
-
RETSIGTYPE
sighandler (int sig)
+
static void
sighandler (int sig)
{
int save_errno = errno;
{
int save_errno = errno;