improves style

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14118 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-09-05 18:01:48 +00:00
parent 911290f701
commit e96ac99568

View File

@ -43,7 +43,7 @@ int
sigismember(const sigset_t *set, int sig)
{
sigset_t mask = (((sigset_t) 1) << (( sig ) - 1)) ;
return (*set & mask) ? 1 : 0 ;
return (*set & mask) ? 1 : 0 ;
}
@ -51,7 +51,8 @@ int
sigaddset(sigset_t *set, int sig)
{
sigset_t mask = (((sigset_t) 1) << (( sig ) - 1)) ;
return ((*set |= mask), 0) ;
*set |= mask;
return 0;
}
@ -59,6 +60,7 @@ int
sigdelset(sigset_t *set, int sig)
{
sigset_t mask = (((sigset_t) 1) << (( sig ) - 1)) ;
return ((*set &= ~mask), 0) ;
*set &= ~mask;
return 0;
}