From 7be00d5807ff857724f61c50a53b0147d0ef694d Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 19 Jul 2010 12:37:28 +0000 Subject: MFC r209933: Use _SIG_VALID instead of expanded form of the macro. --- lib/libthr/thread/thr_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libthr') diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c index 9615b06febb9..efd8cb492849 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); -- cgit v1.2.3