From: Ralph Corderoy Date: Mon, 15 May 2017 13:31:36 +0000 (+0100) Subject: sbr/utils.c: Use h/signals.h for setup_signal_handlers prototype. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/3f9f71ca8adbab14eafccca1d6f634e836325d5c?ds=sidebyside;hp=--cc sbr/utils.c: Use h/signals.h for setup_signal_handlers prototype. Deleted its own prototype for setup_signal_handlers() and added it to the existing h/signals.h as it's defined in h/signals.c. --- 3f9f71ca8adbab14eafccca1d6f634e836325d5c diff --git a/h/signals.h b/h/signals.h index 70616a9b..babc4bf5 100644 --- a/h/signals.h +++ b/h/signals.h @@ -17,3 +17,4 @@ typedef void (*SIGNAL_HANDLER)(int); */ SIGNAL_HANDLER SIGNAL (int, SIGNAL_HANDLER); SIGNAL_HANDLER SIGNAL2 (int, SIGNAL_HANDLER); +int setup_signal_handlers(void); diff --git a/sbr/utils.c b/sbr/utils.c index 08ad0c1a..7abf8e60 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -7,11 +7,9 @@ #include #include +#include #include -/* sbr/signals.c */ -extern int setup_signal_handlers(void); - /* sbr/m_mktemp.c */ extern void remove_registered_files_atexit(void);