From: Karl Heuer Date: Thu, 11 Dec 1997 07:22:21 +0000 (+0000) Subject: (sys_signal): Add two casts. X-Git-Tag: emacs-20.3~2618 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a2825280f1e01185f3f491014ab2418e65803adc;p=emacs.git (sys_signal): Add two casts. --- diff --git a/src/sysdep.c b/src/sysdep.c index 240b0f8a6b0..8da94767e36 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 = 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 @@ sys_signal (int signal_number, signal_handler_t action) 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__