mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
This commit is contained in:
@@ -1602,7 +1602,7 @@ isc_task_setprivilege(isc_task_t *task0, bool priv) {
|
||||
bool oldpriv;
|
||||
|
||||
LOCK(&task->lock);
|
||||
oldpriv = (task->flags & TASK_F_PRIVILEGED);
|
||||
oldpriv = ((task->flags & TASK_F_PRIVILEGED) != 0);
|
||||
if (priv)
|
||||
task->flags |= TASK_F_PRIVILEGED;
|
||||
else
|
||||
@@ -1629,7 +1629,7 @@ isc_task_privilege(isc_task_t *task0) {
|
||||
REQUIRE(VALID_TASK(task));
|
||||
|
||||
LOCK(&task->lock);
|
||||
priv = (task->flags & TASK_F_PRIVILEGED);
|
||||
priv = ((task->flags & TASK_F_PRIVILEGED) != 0);
|
||||
UNLOCK(&task->lock);
|
||||
return (priv);
|
||||
}
|
||||
|
Reference in New Issue
Block a user