From 50f3704e2770abb81a93f0310f4fe6efe1e4c642 Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Thu, 23 Mar 2023 18:51:52 +0100 Subject: [PATCH] Lint --- src/handle_sign_message.c | 1 - src/ui/get_pubkey_bagl.c | 1 - src/ui/sign_message_bagl.c | 12 +++++------- src/utils.h | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/handle_sign_message.c b/src/handle_sign_message.c index 9fc70e36..6beea1ce 100644 --- a/src/handle_sign_message.c +++ b/src/handle_sign_message.c @@ -11,7 +11,6 @@ #include "handle_sign_message.h" - static int scan_header_for_signer(const uint32_t *derivation_path, uint32_t derivation_path_length, size_t *signer_index, diff --git a/src/ui/get_pubkey_bagl.c b/src/ui/get_pubkey_bagl.c index 6a7de0df..e9a41e8f 100644 --- a/src/ui/get_pubkey_bagl.c +++ b/src/ui/get_pubkey_bagl.c @@ -48,7 +48,6 @@ UX_FLOW(ux_display_public_flow, &ux_display_public_flow_6_step, &ux_display_public_flow_7_step); - void ui_get_public_key(void) { ux_flow_init(0, ux_display_public_flow, NULL); } diff --git a/src/ui/sign_message_bagl.c b/src/ui/sign_message_bagl.c index 8c30dca2..a0c6bf5e 100644 --- a/src/ui/sign_message_bagl.c +++ b/src/ui/sign_message_bagl.c @@ -56,8 +56,7 @@ UX_STEP_CB(ux_reject_step, }); #define MAX_FLOW_STEPS_ONCHAIN \ - (MAX_TRANSACTION_SUMMARY_ITEMS \ - + 1 /* approve */ \ + (MAX_TRANSACTION_SUMMARY_ITEMS + 1 /* approve */ \ + 1 /* reject */ \ + 1 /* FLOW_END_STEP */ \ ) @@ -77,11 +76,10 @@ else if utf8: if ascii: - message text */ -#define MAX_FLOW_STEPS_OFFCHAIN \ - (7 \ - + 1 /* approve */ \ - + 1 /* reject */ \ - + 1 /* FLOW_END_STEP */ \ +#define MAX_FLOW_STEPS_OFFCHAIN \ + (7 + 1 /* approve */ \ + + 1 /* reject */ \ + + 1 /* FLOW_END_STEP */ \ ) static ux_flow_step_t const *flow_steps[MAX(MAX_FLOW_STEPS_ONCHAIN, MAX_FLOW_STEPS_OFFCHAIN)]; diff --git a/src/utils.h b/src/utils.h index 59b97961..6961b711 100644 --- a/src/utils.h +++ b/src/utils.h @@ -55,7 +55,7 @@ int read_derivation_path(const uint8_t *data_buffer, uint8_t set_result_sign_message(void); -#endif //_UTILS_H_ +#endif //_UTILS_H_ // Outdated ? #ifdef TEST