Fix an error in a DEBUG assertion
This commit is contained in:
parent
6653c5cbf3
commit
2e49111a17
@ -115,7 +115,7 @@ CODE void (*sigset(int signo, CODE void (*func)(int signo)))(int signo)
|
|||||||
sigset_t set;
|
sigset_t set;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(GOOD_SIGNO(signo) && func != NULL);
|
DEBUGASSERT(GOOD_SIGNO(signo) && func != SIG_ERR);
|
||||||
|
|
||||||
(void)sigemptyset(&set);
|
(void)sigemptyset(&set);
|
||||||
(void)sigaddset(&set, signo);
|
(void)sigaddset(&set, signo);
|
||||||
|
@ -76,8 +76,7 @@ CODE void (*signal(int signo, CODE void (*func)(int signo)))(int signo)
|
|||||||
struct sigaction oact;
|
struct sigaction oact;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(GOOD_SIGNO(signo) && func != NULL);
|
DEBUGASSERT(GOOD_SIGNO(signo) && func != SIG_ERR && func != SIG_HOLD);
|
||||||
DEBUGASSERT(func != SIG_ERR && func != SIG_HOLD);
|
|
||||||
|
|
||||||
/* Initialize the sigaction structure */
|
/* Initialize the sigaction structure */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user