clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I50e60f2b1a9db9039cb5450ae509064eaeaa9d2e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/image_verify.cpp b/image_verify.cpp
index 2b20340..1c81abe 100644
--- a/image_verify.cpp
+++ b/image_verify.cpp
@@ -200,8 +200,8 @@
sigFile += SIGNATURE_FILE_EXT;
// Verify the signature.
- optionalImagesValid =
- verifyFile(file, sigFile, publicKeyFile, hashType);
+ optionalImagesValid = verifyFile(file, sigFile, publicKeyFile,
+ hashType);
if (!optionalImagesValid)
{
error("Image file Signature Validation failed on {IMAGE}",
@@ -301,7 +301,6 @@
const fs::path& publicKey,
const std::string& hashFunc)
{
-
// Check existence of the files in the system.
std::error_code ec;
if (!(fs::exists(file, ec) && fs::exists(sigFile, ec)))
@@ -402,7 +401,6 @@
CustomMap Signature::mapFile(const fs::path& path, size_t size)
{
-
CustomFd fd(open(path.c_str(), O_RDONLY));
return CustomMap(mmap(nullptr, size, PROT_READ, MAP_PRIVATE, fd(), 0),