diff options
Diffstat (limited to 'signal/sigandset.c')
-rw-r--r-- | signal/sigandset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/signal/sigandset.c b/signal/sigandset.c index f81a593..ffea141 100644 --- a/signal/sigandset.c +++ b/signal/sigandset.c @@ -17,18 +17,18 @@ #include <errno.h> #include <signal.h> -#define __need_NULL -#include <stddef.h> +#include <sigsetops.h> /* Combine sets LEFT and RIGHT by logical AND and place result in DEST. */ int sigandset (sigset_t *dest, const sigset_t *left, const sigset_t *right) { - if (dest == NULL || left == NULL || right == NULL) + if (!dest || !left || !right) { __set_errno (EINVAL); return -1; } - return __sigandset (dest, left, right); + __sigandset (dest, left, right); + return 0; } |