about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/signal/sigaddset.c2
-rw-r--r--src/signal/sigdelset.c2
-rw-r--r--src/signal/sigismember.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/signal/sigaddset.c b/src/signal/sigaddset.c
index d632c6fb..edb48d1c 100644
--- a/src/signal/sigaddset.c
+++ b/src/signal/sigaddset.c
@@ -4,7 +4,7 @@
 int sigaddset(sigset_t *set, int sig)
 {
 	unsigned s = sig-1;
-	if (s >= 8*sizeof(sigset_t) || s-32U<3) {
+	if (s >= 8*sizeof(sigset_t) || sig-32U<3) {
 		errno = EINVAL;
 		return -1;
 	}
diff --git a/src/signal/sigdelset.c b/src/signal/sigdelset.c
index f8794ad6..a77c638f 100644
--- a/src/signal/sigdelset.c
+++ b/src/signal/sigdelset.c
@@ -4,7 +4,7 @@
 int sigdelset(sigset_t *set, int sig)
 {
 	unsigned s = sig-1;
-	if (s >= 8*sizeof(sigset_t) || s-32U<3) {
+	if (s >= 8*sizeof(sigset_t) || sig-32U<3) {
 		errno = EINVAL;
 		return -1;
 	}
diff --git a/src/signal/sigismember.c b/src/signal/sigismember.c
index d3de6efb..e887b95f 100644
--- a/src/signal/sigismember.c
+++ b/src/signal/sigismember.c
@@ -4,7 +4,7 @@
 int sigismember(const sigset_t *set, int sig)
 {
 	unsigned s = sig-1;
-	if (s >= 8*sizeof(sigset_t) || s-32U<3) {
+	if (s >= 8*sizeof(sigset_t) || sig-32U<3) {
 		errno = EINVAL;
 		return -1;
 	}