1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

use const char * const * for wordlist

This commit is contained in:
Pavol Rusnak 2015-02-14 12:40:32 +01:00
parent c369683dc9
commit 07c8c4963a
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ static char words[24][12];
void next_word(void) {
word_pos = word_order[word_index];
if (word_pos == 0) {
const char **wl = mnemonic_wordlist();
const char * const *wl = mnemonic_wordlist();
strlcpy(fake_word, wl[random_uniform(2048)], sizeof(fake_word));
layoutDialogSwipe(DIALOG_ICON_INFO, NULL, NULL, NULL, "Please enter the word", NULL, fake_word, NULL, "on your computer", NULL);
} else {
@ -119,7 +119,7 @@ void recovery_word(const char *word)
}
} else { // real word
if (enforce_wordlist) { // check if word is valid
const char **wl = mnemonic_wordlist();
const char * const *wl = mnemonic_wordlist();
bool found = false;
while (*wl) {
if (strcmp(word, *wl) == 0) {

@ -1 +1 @@
Subproject commit f4fe7c9aa5e85ec3898ce07a5af5fc99bb8f5de4
Subproject commit d814f58a3b027b154ae77bdf236a0cd08a421107