From ef7a77fd103d414a1267717feea4d3c346cd0d98 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 15 Nov 2022 11:50:36 +0000 Subject: [PATCH] Restyled by clang-format --- src/tools/spake2p/Cmd_GenVerifier.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/tools/spake2p/Cmd_GenVerifier.cpp b/src/tools/spake2p/Cmd_GenVerifier.cpp index 167e8ae7d5f7bd..1f7f3ea61848bc 100644 --- a/src/tools/spake2p/Cmd_GenVerifier.cpp +++ b/src/tools/spake2p/Cmd_GenVerifier.cpp @@ -149,20 +149,21 @@ uint8_t gSalt[BASE64_MAX_DECODED_LEN(BASE64_ENCODED_LEN(chip::kSpake2p_Max_PBKDF uint8_t gSaltDecodedLen = 0; uint8_t gSaltLen = 0; const char * gOutFileName = nullptr; -FILE *gPinCodeFile = nullptr; +FILE * gPinCodeFile = nullptr; static uint32_t GetNextPinCode() { - if (!gPinCodeFile) { + if (!gPinCodeFile) + { return chip::kSetupPINCodeUndefinedValue; } - char pinCodeStr[9] = {0}; + char pinCodeStr[9] = { 0 }; if (fgets(pinCodeStr, 8, gPinCodeFile) != nullptr) { uint32_t pinCode = atoi(pinCodeStr); - if (pinCode == 11111111 || pinCode == 22222222 || pinCode == 33333333 || pinCode == 44444444 || - pinCode == 55555555 || pinCode == 66666666 || pinCode == 77777777 || pinCode == 88888888 || - pinCode == 99999999 || pinCode == 12345678 || pinCode == 87654321) + if (pinCode == 11111111 || pinCode == 22222222 || pinCode == 33333333 || pinCode == 44444444 || pinCode == 55555555 || + pinCode == 66666666 || pinCode == 77777777 || pinCode == 88888888 || pinCode == 99999999 || pinCode == 12345678 || + pinCode == 87654321) { return chip::kSetupPINCodeUndefinedValue; }