summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-07-12 10:15:33 +0000
committerkib <kib@FreeBSD.org>2010-07-12 10:15:33 +0000
commit48eef70c5e666b73b64ec34176bd925ea2720f50 (patch)
tree9687b61b36274bc71c7506085147d540b41dda06 /lib/libthr/thread
parent62d3ab3ec89fd724f8db94cd218a9681098ffda9 (diff)
downloadFreeBSD-src-48eef70c5e666b73b64ec34176bd925ea2720f50.zip
FreeBSD-src-48eef70c5e666b73b64ec34176bd925ea2720f50.tar.gz
Use _SIG_VALID instead of expanded form of the macro.
Submitted by: Garrett Cooper <yanegomi gmail com> MFC after: 1 week
Diffstat (limited to 'lib/libthr/thread')
-rw-r--r--lib/libthr/thread/thr_sig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c
index 9615b06..efd8cb4 100644
--- a/lib/libthr/thread/thr_sig.c
+++ b/lib/libthr/thread/thr_sig.c
@@ -194,7 +194,7 @@ int
_sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
{
/* Check if the signal number is out of range: */
- if (sig < 1 || sig > _SIG_MAXSIG || sig == SIGCANCEL) {
+ if (!_SIG_VALID(sig) || sig == SIGCANCEL) {
/* Return an invalid argument: */
errno = EINVAL;
return (-1);
OpenPOWER on IntegriCloud