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

change "expr == false" to "!expr" in conditionals

This commit is contained in:
Evan Hunt
2020-03-30 13:49:55 -07:00
parent 68a1c9d679
commit 57e54c46e4
31 changed files with 73 additions and 78 deletions

View File

@@ -643,7 +643,7 @@ rdataset_totext(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
*/
if ((ctx->style.flags & DNS_STYLEFLAG_NO_CLASS) == 0 &&
((ctx->style.flags & DNS_STYLEFLAG_OMIT_CLASS) == 0 ||
ctx->class_printed == false))
!ctx->class_printed))
{
unsigned int class_start;
INDENT_TO(class_column);
@@ -919,7 +919,7 @@ dump_rdataset(isc_mem_t *mctx, const dns_name_t *name, dns_rdataset_t *rdataset,
*/
if ((ctx->style.flags & DNS_STYLEFLAG_TTL) != 0) {
if (ctx->current_ttl_valid == false ||
if (!ctx->current_ttl_valid ||
ctx->current_ttl != rdataset->ttl) {
if ((ctx->style.flags & DNS_STYLEFLAG_COMMENT) != 0) {
isc_buffer_clear(buffer);