diff options
author | jraynard <jraynard@FreeBSD.org> | 1997-11-21 23:18:05 +0000 |
---|---|---|
committer | jraynard <jraynard@FreeBSD.org> | 1997-11-21 23:18:05 +0000 |
commit | 3056e64ca3428984821f3b3ba198f9d2a27c6ad5 (patch) | |
tree | f734756caf6b1048d1a14ddc88682e7af5762a92 /lib | |
parent | 193493461910145b02ddfc72f0f6bba6b536ec95 (diff) | |
download | FreeBSD-src-3056e64ca3428984821f3b3ba198f9d2a27c6ad5.zip FreeBSD-src-3056e64ca3428984821f3b3ba198f9d2a27c6ad5.tar.gz |
Fix bit-twiddling in sigismember(3).
Note this ONLY affects the function version - the macro version is always
used unless for some reason you put #undef sigismember in your code before
calling it.
PR: 3615
Submitted by: Nanbor Wang <nw1@cs.wustl.edu> (slightly amended patch)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/sigsetops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/sigsetops.c b/lib/libc/gen/sigsetops.c index c3bd870..7ac903b 100644 --- a/lib/libc/gen/sigsetops.c +++ b/lib/libc/gen/sigsetops.c @@ -84,5 +84,5 @@ sigismember(set, signo) const sigset_t *set; int signo; { - return ((*set & ~sigmask(signo)) != 0); + return ((*set & sigmask(signo)) != 0); } |