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:
@@ -2188,7 +2188,7 @@ copy_namehook_lists(dns_adb_t *adb, dns_adbfind_t *find,
|
||||
|
||||
bucket = DNS_ADB_INVALIDBUCKET;
|
||||
|
||||
if (find->options & DNS_ADBFIND_INET) {
|
||||
if ((find->options & DNS_ADBFIND_INET) != 0) {
|
||||
namehook = ISC_LIST_HEAD(name->v4);
|
||||
while (namehook != NULL) {
|
||||
entry = namehook->entry;
|
||||
@@ -2228,7 +2228,7 @@ copy_namehook_lists(dns_adb_t *adb, dns_adbfind_t *find,
|
||||
}
|
||||
}
|
||||
|
||||
if (find->options & DNS_ADBFIND_INET6) {
|
||||
if ((find->options & DNS_ADBFIND_INET6) != 0) {
|
||||
namehook = ISC_LIST_HEAD(name->v6);
|
||||
while (namehook != NULL) {
|
||||
entry = namehook->entry;
|
||||
@@ -3701,8 +3701,7 @@ dbfind_name(dns_adbname_t *adbname, isc_stdtime_t now, dns_rdatatype_t rdtype)
|
||||
result = dns_view_find(adb->view, &adbname->name, rdtype, now,
|
||||
NAME_GLUEOK(adbname) ? DNS_DBFIND_GLUEOK : 0,
|
||||
NAME_HINTOK(adbname),
|
||||
(adbname->flags & NAME_STARTATZONE) != 0 ?
|
||||
true : false,
|
||||
((adbname->flags & NAME_STARTATZONE) != 0),
|
||||
NULL, NULL, fname, &rdataset, NULL);
|
||||
|
||||
/* XXXVIX this switch statement is too sparse to gen a jump table. */
|
||||
|
Reference in New Issue
Block a user