1
0
Fork 0
forked from len0rd/rockbox

Const police raid, making a lot of pointers to lang strings const and removing some ugly casting

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17251 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2008-04-26 09:30:24 +00:00
parent e1bc2d5b71
commit 33c44461e1
15 changed files with 58 additions and 56 deletions

View file

@ -1050,9 +1050,9 @@ void check_bootfile(bool do_rolo)
if((entry->wrtdate != wrtdate) ||
(entry->wrttime != wrttime))
{
char *lines[] = { ID2P(LANG_BOOT_CHANGED),
ID2P(LANG_REBOOT_NOW) };
struct text_message message={ lines, 2 };
static const char *lines[] = { ID2P(LANG_BOOT_CHANGED),
ID2P(LANG_REBOOT_NOW) };
static const struct text_message message={ lines, 2 };
button_clear_queue(); /* Empty the keyboard buffer */
if(gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES)
rolo_load(BOOTDIR "/" BOOTFILE);