Mercurial > emacs
changeset 20456:16c41f2c329d
(sys_signal): Add two casts.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 11 Dec 1997 07:22:21 +0000 |
parents | aff2a2638ef4 |
children | 05d34da4c50c |
files | src/sysdep.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.c Thu Dec 11 07:21:05 1997 +0000 +++ b/src/sysdep.c Thu Dec 11 07:22:21 1997 +0000 @@ -2740,7 +2740,7 @@ sys_signal (int signal_number, signal_handler_t action) { sigemptyset (&new_action.sa_mask); - new_action.sa_handler = action; + new_action.sa_handler = (void (*)(int)) action; #ifdef SA_RESTART /* Emacs mostly works better with restartable system services. If this * flag exists, we probably want to turn it on here. @@ -2750,7 +2750,7 @@ new_action.sa_flags = 0; #endif sigaction (signal_number, &new_action, &old_action); - return (old_action.sa_handler); + return ((void (*)(int)) old_action.sa_handler); } #ifndef __GNUC__