summaryrefslogtreecommitdiff
path: root/src/signal/sigisemptyset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal/sigisemptyset.c')
-rw-r--r--src/signal/sigisemptyset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/signal/sigisemptyset.c b/src/signal/sigisemptyset.c
index e2410514..312c66cf 100644
--- a/src/signal/sigisemptyset.c
+++ b/src/signal/sigisemptyset.c
@@ -4,6 +4,6 @@
int sigisemptyset(const sigset_t *set)
{
- static const sigset_t zeroset;
- return !memcmp(set, &zeroset, 8);
+ static const unsigned long zeroset[_NSIG/8/sizeof(long)];
+ return !memcmp(set, &zeroset, _NSIG/8);
}