* 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/macros.h>
+#include <lib-lib/lib-lib.h>
#include <lib-ui/curses.h>
static int IsEndwin = 0;
/* Attempt to catch "ordinary" signals and shut down gracefully. */
-RETSIGTYPE exit_handler (int sig)
+static RETSIGTYPE exit_handler (int sig)
{
curs_set (1);
endwin (); /* just to be safe */
exit (0);
}
-RETSIGTYPE chld_handler(int sig __attribute__((unused)))
+static RETSIGTYPE chld_handler(int sig __attribute__((unused)))
{
/* empty */
}
-RETSIGTYPE sighandler (int sig)
+static RETSIGTYPE sighandler (int sig)
{
int save_errno = errno;