From a7dbcf5c8ca7edb7a46eb276031ad1df4131135b Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 13 Dec 2013 02:20:07 -0500 Subject: use 0 instead of NULL for null pointer constants and thereby remove otherwise-unnecessary inclusion of stddef.h --- src/signal/sigset.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/signal/sigset.c') diff --git a/src/signal/sigset.c b/src/signal/sigset.c index cbe46284..0d7b4564 100644 --- a/src/signal/sigset.c +++ b/src/signal/sigset.c @@ -1,5 +1,4 @@ #include -#include void (*sigset(int sig, void (*handler)(int)))(int) { @@ -11,7 +10,7 @@ void (*sigset(int sig, void (*handler)(int)))(int) return SIG_ERR; if (handler == SIG_HOLD) { - if (sigaction(sig, NULL, &sa_old) < 0) + if (sigaction(sig, 0, &sa_old) < 0) return SIG_ERR; if (sigprocmask(SIG_BLOCK, &mask, &mask) < 0) return SIG_ERR; -- cgit v1.2.1