2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool

This commit is contained in:
Ondřej Surý
2018-10-11 11:57:57 +02:00
parent fbd2e47f51
commit b2b43fd235
47 changed files with 210 additions and 177 deletions

View File

@@ -1439,9 +1439,11 @@ dns_update_signaturesinc(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db,
* and one doesn't.
*/
state->check_ksk =
(dns_zone_getoptions(zone) & DNS_ZONEOPT_UPDATECHECKKSK);
((dns_zone_getoptions(zone) &
DNS_ZONEOPT_UPDATECHECKKSK) != 0);
state->keyset_kskonly =
(dns_zone_getoptions(zone) & DNS_ZONEOPT_DNSKEYKSKONLY);
((dns_zone_getoptions(zone) &
DNS_ZONEOPT_DNSKEYKSKONLY) != 0);
/*
* Get the NSEC/NSEC3 TTL from the SOA MINIMUM field.