Skip to content

Commit 69d2556

Browse files
Cleanup sources
- Remove useless header file - Fix bit-field init - Fix parameters casting
1 parent a5b57b7 commit 69d2556

File tree

8 files changed

+6
-9
lines changed

8 files changed

+6
-9
lines changed

src/features/signMessageEIP712/filtering.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,8 @@ bool filtering_trusted_name(const uint8_t *payload,
949949
}
950950
hash_filtering_path((cx_hash_t *) &hash_ctx, discarded, path_crc);
951951
hash_nbytes((uint8_t *) name, sizeof(char) * name_len, (cx_hash_t *) &hash_ctx);
952-
hash_nbytes(types, type_count, (cx_hash_t *) &hash_ctx);
953-
hash_nbytes(sources, source_count, (cx_hash_t *) &hash_ctx);
952+
hash_nbytes((uint8_t *) types, type_count, (cx_hash_t *) &hash_ctx);
953+
hash_nbytes((uint8_t *) sources, source_count, (cx_hash_t *) &hash_ctx);
954954
if (!sig_verif_end(&hash_ctx, sig, sig_len)) {
955955
return false;
956956
}

src/features/signMessageEIP712/ui_logic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ void ui_712_push_pairs(void) {
12571257
if (N_storage.displayHash) {
12581258
// Prepare the pairs list with the hashes
12591259
eip712_format_hash(pair);
1260-
g_pairs[pair].forcePageStart = 1;
1260+
g_pairs[pair].forcePageStart = true;
12611261
}
12621262
}
12631263

src/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "io.h"
2424

2525
#include "parser.h"
26-
#include "glyphs.h"
2726
#include "common_utils.h"
2827

2928
#include "eth_swap_utils.h"

src/nbgl/ui_approve_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static void setTagValuePairs(bool displayNetwork, bool fromPlugin) {
171171
extension->fullValue = strings.common.toAddress;
172172
extension->explanation = strings.common.toAddress;
173173
g_pairs[nbPairs].extension = extension;
174-
g_pairs[nbPairs].aliasValue = 1;
174+
g_pairs[nbPairs].aliasValue = true;
175175
} else {
176176
g_pairs[nbPairs].value = strings.common.toAddress;
177177
}

src/nbgl/ui_gcs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ bool ui_gcs(void) {
323323
} else {
324324
ext->backText = app_mem_strdup(ext->backText);
325325
}
326-
g_pairs[0].aliasValue = 1;
326+
g_pairs[0].aliasValue = true;
327327

328328
for (int i = 0; i < (int) field_table_size(); ++i) {
329329
if ((field = get_from_field_table(i)) == NULL) {

src/nbgl/ui_nbgl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include "nbgl_use_case.h"
44
#include "shared_context.h"
5-
#include "glyphs.h"
65

76
#ifdef SCREEN_SIZE_WALLET
87
#define ICON_APP_WARNING LARGE_WARNING_ICON

src/nbgl/ui_safe_account.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static void setTagValuePairs(void) {
152152
nbPairs++;
153153
g_pairs[nbPairs].item = "Threshold";
154154
g_pairs[nbPairs].value = strings.tmp.tmp + ADDRESS_LENGTH_STR;
155-
g_pairs[nbPairs].aliasValue = 1;
155+
g_pairs[nbPairs].aliasValue = true;
156156
g_pairs[nbPairs].extension = &extensions[1];
157157
extensions[1].aliasType = TAG_VALUE_LIST_ALIAS;
158158
extensions[1].title = "";

src/nbgl/ui_tx_simulation.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "apdu_constants.h"
22
#include "utils.h"
33
#include "nbgl_use_case.h"
4-
#include "glyphs.h"
54
#include "ui_nbgl.h"
65
#include "ui_callbacks.h"
76
#include "ui_callbacks.h"

0 commit comments

Comments
 (0)