Fix an error in a DEBUG assertion

This commit is contained in:
Gregory Nutt 2016-04-11 09:07:23 -06:00
parent 6653c5cbf3
commit 2e49111a17
2 changed files with 2 additions and 3 deletions

View File

@ -115,7 +115,7 @@ CODE void (*sigset(int signo, CODE void (*func)(int signo)))(int signo)
sigset_t set;
int ret;
DEBUGASSERT(GOOD_SIGNO(signo) && func != NULL);
DEBUGASSERT(GOOD_SIGNO(signo) && func != SIG_ERR);
(void)sigemptyset(&set);
(void)sigaddset(&set, signo);

View File

@ -76,8 +76,7 @@ CODE void (*signal(int signo, CODE void (*func)(int signo)))(int signo)
struct sigaction oact;
int ret;
DEBUGASSERT(GOOD_SIGNO(signo) && func != NULL);
DEBUGASSERT(func != SIG_ERR && func != SIG_HOLD);
DEBUGASSERT(GOOD_SIGNO(signo) && func != SIG_ERR && func != SIG_HOLD);
/* Initialize the sigaction structure */