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;
}
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;
}
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;
}