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: I44441096113929ce96eb1439e2932e6ff3c87f27
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/user_channel/passwd_mgr.cpp b/user_channel/passwd_mgr.cpp
index 9b232b5..7b5b7ec 100644
--- a/user_channel/passwd_mgr.cpp
+++ b/user_channel/passwd_mgr.cpp
@@ -26,11 +26,12 @@
#include <sys/stat.h>
#include <unistd.h>
+#include <phosphor-logging/log.hpp>
+
#include <cerrno>
#include <cstring>
#include <fstream>
#include <iomanip>
-#include <phosphor-logging/log.hpp>
namespace ipmi
{
@@ -199,8 +200,8 @@
inBytes, inBytesLen)))
{
outLen += outEVPLen;
- if ((retval =
- EVP_CipherFinal(ctx.get(), outBytes + outLen, &outEVPLen)))
+ if ((retval = EVP_CipherFinal(ctx.get(), outBytes + outLen,
+ &outEVPLen)))
{
outLen += outEVPLen;
*outBytesLen = outLen;
@@ -381,8 +382,8 @@
if (dataBuf.size() != 0)
{
- inBytesLen =
- dataBuf.size() + newUserName.size() + EVP_CIPHER_block_size(cipher);
+ inBytesLen = dataBuf.size() + newUserName.size() +
+ EVP_CIPHER_block_size(cipher);
}
SecureString inBytes(inBytesLen, '\0');