Use _SIG_VALID instead of expanded form of the macro.

Submitted by:	Garrett Cooper <yanegomi gmail com>
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2010-07-12 10:15:33 +00:00
parent 5ebe96648b
commit b144e48b2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209933

View File

@ -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);