mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
sys/signalvar.h: Fix opposite boolean sense in comment
Correct the sense of the comment describing sigsetmasked() to match the code. It was exactly backwards. While here, convert the type/values of the predicate from pre-C99 int/1/0 to bool/true/false. No functional change.
This commit is contained in:
parent
5df2e54c42
commit
2bde6d4e72
1 changed files with 4 additions and 4 deletions
|
|
@ -282,20 +282,20 @@ extern bool sigfastblock_fetch_always;
|
|||
(!SIGISEMPTY((td)->td_proc->p_siglist) && \
|
||||
!sigsetmasked(&(td)->td_proc->p_siglist, &(td)->td_sigmask)))
|
||||
/*
|
||||
* Return the value of the pseudo-expression ((*set & ~*mask) != 0). This
|
||||
* Return the value of the pseudo-expression ((*set & ~*mask) == 0). This
|
||||
* is an optimized version of SIGISEMPTY() on a temporary variable
|
||||
* containing SIGSETNAND(*set, *mask).
|
||||
*/
|
||||
static __inline int
|
||||
static __inline bool
|
||||
sigsetmasked(sigset_t *set, sigset_t *mask)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < _SIG_WORDS; i++) {
|
||||
if (set->__bits[i] & ~mask->__bits[i])
|
||||
return (0);
|
||||
return (false);
|
||||
}
|
||||
return (1);
|
||||
return (true);
|
||||
}
|
||||
|
||||
#define ksiginfo_init(ksi) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue