summaryrefslogtreecommitdiff
path: root/src/signal/sigorset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal/sigorset.c')
-rw-r--r--src/signal/sigorset.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/signal/sigorset.c b/src/signal/sigorset.c
index eb5feab4..5460224b 100644
--- a/src/signal/sigorset.c
+++ b/src/signal/sigorset.c
@@ -1,15 +1,10 @@
#define _GNU_SOURCE
#include <signal.h>
-#include <errno.h>
#define SST_SIZE (_NSIG/8)
int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right)
{
- if(!dest || !left || !right) {
- errno = EINVAL;
- return -1;
- }
unsigned long i = 0, *d = (void*) dest, *l = (void*) left, *r = (void*) right;
for(; i < SST_SIZE; i++) d[i] = l[i] | r[i];
return 0;