diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2013-12-17 11:08:50 -0500 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2013-12-18 16:06:38 -0500 |
commit | ab1fd5041b784747bec58f4c8ccf069c8920402b (patch) | |
tree | 555a0d0141a416268919c96dfe8d15916fe8b8c7 | |
parent | 9f4bee64da58ed95923ceee4abfe56d5125974f6 (diff) |
Remove obsolete Imake SIGNALRETURNSINT
Assume signal handlers return void, as C89 requires
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r-- | signals.c | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -74,12 +74,6 @@ in this Software without prior written authorization from The Open Group. #include "list.h" #include "save.h" -#if defined(X_NOT_POSIX) && defined(SIGNALRETURNSINT) -#define SIGVAL int -#else -#define SIGVAL void -#endif - #ifndef X_NOT_POSIX #define USE_POSIX_WAIT #endif @@ -103,8 +97,8 @@ in this Software without prior written authorization from The Open Group. int checkpoint_from_signal = 0; -static SIGVAL -Signal(int sig, SIGVAL (*handler)(int)) +static void +Signal(int sig, void (*handler)(int)) { #ifndef X_NOT_POSIX struct sigaction sigact, osigact; @@ -112,13 +106,7 @@ Signal(int sig, SIGVAL (*handler)(int)) sigemptyset(&sigact.sa_mask); sigact.sa_flags = 0; sigaction(sig, &sigact, &osigact); -# if defined(SIGNALRETURNSINT) - return osigact.sa_handler; -# endif #else -# if defined(SIGNALRETURNSINT) - return -# endif signal(sig, handler); #endif } |