From 4ab26cc34c48a3374c54735a5df0bed106fda06e Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 6 Dec 2012 21:50:37 +0100 Subject: [PATCH] fixup sigandset --- src/signal/sigandset.c | 2 +- src/signal/sigorset.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/signal/sigandset.c b/src/signal/sigandset.c index f62c7fec..78f9600d 100644 --- a/src/signal/sigandset.c +++ b/src/signal/sigandset.c @@ -2,7 +2,7 @@ #include #include -#define SST_SIZE (sizeof(sigset_t) / sizeof(long)) +#define SST_SIZE (_NSIG/8) int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right) { diff --git a/src/signal/sigorset.c b/src/signal/sigorset.c index 232075b1..eb5feab4 100644 --- a/src/signal/sigorset.c +++ b/src/signal/sigorset.c @@ -2,7 +2,7 @@ #include #include -#define SST_SIZE (sizeof(sigset_t) / sizeof(long)) +#define SST_SIZE (_NSIG/8) int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right) { -- 2.25.1