From e8df39128fc36a0574b524c6517f8fb85f91310f Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Wed, 12 Oct 2022 18:55:51 +0200 Subject: [PATCH] clang format --- src/signMessage.c | 1 - src/signOffchainMessage.c | 1 - src/utils.c | 9 ++++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/signMessage.c b/src/signMessage.c index 0da8089d..9a6cbc0a 100644 --- a/src/signMessage.c +++ b/src/signMessage.c @@ -14,7 +14,6 @@ #include "handle_swap_sign_transaction.h" - static void send_result_sign_message(void) { sendResponse(set_result_sign_message(), true); } diff --git a/src/signOffchainMessage.c b/src/signOffchainMessage.c index d11bf57a..d219dc2a 100644 --- a/src/signOffchainMessage.c +++ b/src/signOffchainMessage.c @@ -76,7 +76,6 @@ static bool is_data_ascii(const uint8_t *data, size_t length) { return true; } - ////////////////////////////////////////////////////////////////////// UX_STEP_NOCB(ux_sign_msg_text_step, diff --git a/src/utils.c b/src/utils.c index 6f0fa0ce..4e5d96c1 100644 --- a/src/utils.c +++ b/src/utils.c @@ -5,14 +5,13 @@ #include "utils.h" #include "menu.h" - uint32_t readUint32BE(uint8_t *buffer) { return ((buffer[0] << 24) | (buffer[1] << 16) | (buffer[2] << 8) | (buffer[3])); } static void get_private_key(cx_ecfp_private_key_t *privateKey, - const uint32_t *derivationPath, - size_t pathLength) { + const uint32_t *derivationPath, + size_t pathLength) { uint8_t privateKeyData[PRIVATEKEY_LENGTH]; BEGIN_TRY { TRY { @@ -40,8 +39,8 @@ static void get_private_key(cx_ecfp_private_key_t *privateKey, } static void get_private_key_with_seed(cx_ecfp_private_key_t *privateKey, - const uint32_t *derivationPath, - size_t pathLength) { + const uint32_t *derivationPath, + size_t pathLength) { uint8_t privateKeyData[PRIVATEKEY_LENGTH]; BEGIN_TRY { TRY {