aboutsummaryrefslogtreecommitdiff
path: root/signal/sigisempty.c
diff options
context:
space:
mode:
Diffstat (limited to 'signal/sigisempty.c')
-rw-r--r--signal/sigisempty.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/signal/sigisempty.c b/signal/sigisempty.c
index eabe71c..bea03f1 100644
--- a/signal/sigisempty.c
+++ b/signal/sigisempty.c
@@ -17,18 +17,17 @@
#include <errno.h>
#include <signal.h>
-#define __need_NULL
-#include <stddef.h>
+#include <sigsetops.h>
/* Test whether SET is empty. */
int
sigisemptyset (const sigset_t *set)
{
- if (set == NULL)
+ if (!set)
{
__set_errno (EINVAL);
return -1;
}
- return __sigisemptyset (set);
+ return __sigisemptyset (set);
}