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/siginterrupt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/signal/siginterrupt.c') diff --git a/src/signal/siginterrupt.c b/src/signal/siginterrupt.c index 94f92be6..70063400 100644 --- a/src/signal/siginterrupt.c +++ b/src/signal/siginterrupt.c @@ -1,13 +1,12 @@ -#include #include int siginterrupt(int sig, int flag) { struct sigaction sa; - sigaction(sig, NULL, &sa); + sigaction(sig, 0, &sa); if (flag) sa.sa_flags &= ~SA_RESTART; else sa.sa_flags |= SA_RESTART; - return sigaction(sig, &sa, NULL); + return sigaction(sig, &sa, 0); } -- cgit v1.2.1