]> diplodocus.org Git - nmh/commitdiff
sbr/utils.c: Use h/signals.h for setup_signal_handlers prototype.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 13:31:36 +0000 (14:31 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 13:31:36 +0000 (14:31 +0100)
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.

h/signals.h
sbr/utils.c

index 70616a9b84100b8d3c73fde88daeb37b3660e22f..babc4bf5b1157a24cc5260898918fa791f4fe0a2 100644 (file)
@@ -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);
index 08ad0c1ad37796121f06c423e6166c4d5d6cd54c..7abf8e60bca362d72ebf3f97044fc377e505c69f 100644 (file)
@@ -7,11 +7,9 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include <h/signals.h>
 #include <fcntl.h>
 
-/* sbr/signals.c */
-extern int setup_signal_handlers(void);
-
 /* sbr/m_mktemp.c */
 extern void remove_registered_files_atexit(void);