changeset 20498:22dd2d861e36

(sys_signal): Undo previous change.
author Richard M. Stallman <rms@gnu.org>
date Sun, 21 Dec 1997 02:28:52 +0000
parents 0d0951bf17fa
children 693dbc5a2190
files src/sysdep.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Sun Dec 21 02:26:48 1997 +0000
+++ b/src/sysdep.c	Sun Dec 21 02:28:52 1997 +0000
@@ -2740,7 +2740,7 @@
 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 @@
   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__