Mercurial > hg > octave-lyh > gnulib-hg
changeset 16364:89227b989588
fatal-signal: use C prototypes (with explicit void).
* lib/fatal-signal.c (uninstall_handlers, install_handlers)
(init_fatal_signal_set, block_fatal_signals): Fix signatures.
author | Akim Demaille <demaille@gostai.com> |
---|---|
date | Wed, 08 Feb 2012 10:36:20 +0100 |
parents | e89e36252e49 |
children | 160fbb5c6a47 |
files | ChangeLog lib/fatal-signal.c |
diffstat | 2 files changed, 11 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-02-08 Akim Demaille <demaille@gostai.com> + + fatal-signal: use C prototypes (with explicit void). + * lib/fatal-signal.c (uninstall_handlers, install_handlers) + (init_fatal_signal_set, block_fatal_signals): Fix signatures. + 2012-02-07 Paul Eggert <eggert@cs.ucla.edu> regex: spelling fix
--- a/lib/fatal-signal.c +++ b/lib/fatal-signal.c @@ -132,7 +132,7 @@ /* Uninstall the handlers. */ static inline void -uninstall_handlers () +uninstall_handlers (void) { size_t i; @@ -177,7 +177,7 @@ /* Install the handlers. */ static inline void -install_handlers () +install_handlers (void) { size_t i; struct sigaction action; @@ -251,7 +251,7 @@ static sigset_t fatal_signal_set; static void -init_fatal_signal_set () +init_fatal_signal_set (void) { static bool fatal_signal_set_initialized = false; if (!fatal_signal_set_initialized) @@ -271,7 +271,7 @@ /* Temporarily delay the catchable fatal signals. */ void -block_fatal_signals () +block_fatal_signals (void) { init_fatal_signal_set (); sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL); @@ -279,7 +279,7 @@ /* Stop delaying the catchable fatal signals. */ void -unblock_fatal_signals () +unblock_fatal_signals (void) { init_fatal_signal_set (); sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);