diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-10-15 22:36:07 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-10-15 22:36:07 -0700 |
commit | fdd0467bcd46ea0d472111adedd21f43d6d4d15e (patch) | |
tree | 93089bc833fbb7784d51cd44ef5d762b35b10a7b /netdissect-stdinc.h | |
parent | 88d1467627bbe0fbe2e52098aa099ef0319ac713 (diff) | |
download | tcpdump-fdd0467bcd46ea0d472111adedd21f43d6d4d15e.tar.gz |
On UN*X, always use sigaction(), and always have signal handlers return void.
Some time between the mid 1980's and 1990 called; they want their
old-fashioned UNIX signal handling back. ANSI C has had signal handlers
returning void sincer, well, 1989, and POSIX has had sigaction() since
close to forever. No need to worry about really old UN*Xes here.
On Windows, it's also void (as per ANSI C); use signal().
Diffstat (limited to 'netdissect-stdinc.h')
-rw-r--r-- | netdissect-stdinc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h index 343e13c0..d66a9f02 100644 --- a/netdissect-stdinc.h +++ b/netdissect-stdinc.h @@ -215,7 +215,6 @@ typedef char* caddr_t; #define MAXHOSTNAMELEN 64 #define snprintf _snprintf #define vsnprintf _vsnprintf -#define RETSIGTYPE void #else /* _WIN32 */ |