From e5c992983c8dfcad5f88f71b59e25dca8a19401b Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 21 Dec 1997 02:28:52 +0000 Subject: [PATCH] (sys_signal): Undo previous change. --- src/sysdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sysdep.c b/src/sysdep.c index 8da94767e36..240b0f8a6b0 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2740,7 +2740,7 @@ signal_handler_t sys_signal (int signal_number, signal_handler_t action) { sigemptyset (&new_action.sa_mask); - new_action.sa_handler = (void (*)(int)) action; + new_action.sa_handler = 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 @@ sys_signal (int signal_number, signal_handler_t action) new_action.sa_flags = 0; #endif sigaction (signal_number, &new_action, &old_action); - return ((void (*)(int)) old_action.sa_handler); + return (old_action.sa_handler); } #ifndef __GNUC__ -- 2.39.2