LSC: Apply clang-tidy's modernize-use-bool-literals to boringssl
The check finds implicit conversions of integer literals to bools:
bool b1 = 1;
bool b2 = static_cast<bool>(1);
and transforms them to:
bool b1 = true;
bool b2 = true;
Bug: chromium:1290142
Change-Id: I15579e28f544d07b331a230b70a8278e0651150d
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/51085
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
diff --git a/ssl/dtls_method.cc b/ssl/dtls_method.cc
index d179bae..a28dcdc 100644
--- a/ssl/dtls_method.cc
+++ b/ssl/dtls_method.cc
@@ -94,7 +94,7 @@
ssl->s3->aead_read_ctx = std::move(aead_ctx);
ssl->s3->read_level = level;
- ssl->d1->has_change_cipher_spec = 0;
+ ssl->d1->has_change_cipher_spec = false;
return true;
}