Consistently use SIGNAL_HANDLER() macro to define signal handler functions
With this change, the signal handler signature is defined in only one place. Also make most signal handler functions static (those that are only referred to in irc.c).
This commit is contained in:
@@ -160,12 +160,12 @@ typedef int socklen_t;
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
typedef RETSIGTYPE sigfunc (int);
|
||||
sigfunc *my_signal (int, sigfunc *, int);
|
||||
|
||||
#define SIGNAL_HANDLER(x) \
|
||||
RETSIGTYPE x (int unused)
|
||||
|
||||
typedef SIGNAL_HANDLER(sigfunc);
|
||||
sigfunc *my_signal (int, sigfunc *, int);
|
||||
|
||||
#include <stdlib.h>
|
||||
#define index strchr
|
||||
|
||||
|
||||
Reference in New Issue
Block a user