Skip to content

Commit f96353b

Browse files
quantpoetjgriffiths
authored andcommitted
chore: fix some minor issues in the comments
Signed-off-by: quantpoet <quantway@outlook.com>
1 parent 888ea1f commit f96353b

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

main/bcur.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ bool bcur_build_cbor_bytes(const uint8_t* data, const size_t data_len, uint8_t**
302302
JADE_INIT_OUT_SIZE(output_len);
303303

304304
// Format as simple cbor message containing only bytes
305-
const size_t buflen = data_len + 8; // sufficent for cbor overhead
305+
const size_t buflen = data_len + 8; // sufficient for cbor overhead
306306
uint8_t* buf = JADE_MALLOC_PREFER_SPIRAM(buflen);
307307
CborEncoder root_encoder;
308308
cbor_encoder_init(&root_encoder, buf, buflen, 0);

main/process/pinclient.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static void send_http_request_reply(jade_process_t* process, const char* documen
9090
size_t urlA_len = 0;
9191
const bool urlASet = storage_get_pinserver_urlA(urlbuf, sizeof(urlbuf), &urlA_len);
9292
if (urlASet && urlA_len <= 1) {
93-
// Explcitly no url
93+
// Explicitly no url
9494
urlA[0] = '\0';
9595
} else {
9696
urlA_len = snprintf(urlA, sizeof(urlA), "%s/%s", urlASet ? urlbuf : PINSERVER_URL, document);
@@ -102,7 +102,7 @@ static void send_http_request_reply(jade_process_t* process, const char* documen
102102
size_t urlB_len = 0;
103103
const bool urlBSet = storage_get_pinserver_urlB(urlbuf, sizeof(urlbuf), &urlB_len);
104104
if (urlBSet && urlB_len <= 1) {
105-
// Explcitly no second url
105+
// Explicitly no second url
106106
urlB[0] = '\0';
107107
} else {
108108
urlB_len = snprintf(urlB, sizeof(urlB), "%s/%s", urlBSet ? urlbuf : PINSERVER_ONION, document);

main/process/process_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void update_aggregate_scripts_flavour(
462462
// First script sets the 'aggregate_scripts_flavour'
463463
*aggregate_scripts_flavour = new_script_flavour;
464464
} else if (*aggregate_scripts_flavour != new_script_flavour) {
465-
// As soon as we see something differet, set to 'mixed'
465+
// As soon as we see something different, set to 'mixed'
466466
*aggregate_scripts_flavour = SCRIPT_FLAVOUR_MIXED;
467467
}
468468
}

main/process/register_multisig.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ int register_multisig_file(const char* multisig_file, const size_t multisig_file
283283

284284
size_t name_len = 0;
285285
size_t value_len = 0;
286-
char value[128]; // should be sufficent for all valid values - eg. xpub
286+
char value[128]; // should be sufficient for all valid values - eg. xpub
287287
if (!split_line(read_ptr, eol, &name_len, value, sizeof(value), &value_len) || !value_len) {
288288
JADE_LOGE("Failed to process multisig file line: %.*s", eol - read_ptr, read_ptr);
289289
*errmsg = "Invalid multisig file";
@@ -500,7 +500,7 @@ int register_multisig_file(const char* multisig_file, const size_t multisig_file
500500
}
501501

502502
// Done - this signer complete
503-
// Explcitly set no additional path
503+
// Explicitly set no additional path
504504
signers[isigner].path_is_string = false;
505505
signers[isigner].path_len = 0;
506506
++isigner;

main/process/sign_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static bool params_signing_outputs(jade_process_t* process, const CborValue* par
131131
JADE_LOGD("Output %u has output/change data passed", i);
132132

133133
// For backward-compatibility reasons we assume all populated items
134-
// are change unless told otherwise (ie. explcit is_change: false)
134+
// are change unless told otherwise (ie. explicit is_change: false)
135135
bool is_change = true;
136136
rpc_get_boolean("is_change", &arrayItem, &is_change);
137137

main/ui/dialogs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void add_button(gui_view_node_t* parent, btn_data_t* btn_info)
7878
}
7979
gui_set_parent(btn, parent);
8080

81-
// If borders explcitly specified, show in dark grey
81+
// If borders explicitly specified, show in dark grey
8282
// 0 implies default behaviour - no visible borders when not selected
8383
if (btn_info->borders) {
8484
gui_set_borders(btn, GUI_BLOCKSTREAM_BUTTONBORDER_GREY, 1, btn_info->borders);

0 commit comments

Comments
 (0)