Linting fix following review

This commit is contained in:
Alexandre Paillier
2022-06-10 09:47:32 +02:00
parent 6768ccaf78
commit 2ed6a4502d

View File

@@ -100,12 +100,12 @@ static void feed_value_str(const uint8_t *const data, size_t length, bool is_asc
}
} else {
// truncate to strings.tmp.tmp 's size
length = MIN(length, (sizeof(strings.tmp.tmp) - value_strlen)/2);
for (size_t i = 0; i < length; i++ ) {
snprintf(strings.tmp.tmp + value_strlen + 2*i,
sizeof(strings.tmp.tmp) - value_strlen - 2*i,
"%02X",
data[i]);
length = MIN(length, (sizeof(strings.tmp.tmp) - value_strlen) / 2);
for (size_t i = 0; i < length; i++) {
snprintf(strings.tmp.tmp + value_strlen + 2 * i,
sizeof(strings.tmp.tmp) - value_strlen - 2 * i,
"%02X",
data[i]);
}
}
}
@@ -117,7 +117,6 @@ void handleSignPersonalMessage(uint8_t p1,
uint16_t dataLength,
unsigned int *flags,
unsigned int *tx) {
UNUSED(tx);
uint8_t hashMessage[INT256_LENGTH];
if (p1 == P1_FIRST) {