diff options
author | Nils Wallménius <nils@rockbox.org> | 2008-04-26 09:30:24 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2008-04-26 09:30:24 +0000 |
commit | 33c44461e1b5fb9aff2f8ba7470ad2449b3c410e (patch) | |
tree | 4dac157ab03a45868ba75e07af9fb92766fa4ccd /apps/misc.c | |
parent | e1bc2d5b71bd424325e852b0ef9a89252dac1471 (diff) | |
download | rockbox-33c44461e1b5fb9aff2f8ba7470ad2449b3c410e.tar.gz rockbox-33c44461e1b5fb9aff2f8ba7470ad2449b3c410e.zip |
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
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/misc.c b/apps/misc.c index f6e5e6b880..ef4f968119 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -1050,9 +1050,9 @@ void check_bootfile(bool do_rolo) | |||
1050 | if((entry->wrtdate != wrtdate) || | 1050 | if((entry->wrtdate != wrtdate) || |
1051 | (entry->wrttime != wrttime)) | 1051 | (entry->wrttime != wrttime)) |
1052 | { | 1052 | { |
1053 | char *lines[] = { ID2P(LANG_BOOT_CHANGED), | 1053 | static const char *lines[] = { ID2P(LANG_BOOT_CHANGED), |
1054 | ID2P(LANG_REBOOT_NOW) }; | 1054 | ID2P(LANG_REBOOT_NOW) }; |
1055 | struct text_message message={ lines, 2 }; | 1055 | static const struct text_message message={ lines, 2 }; |
1056 | button_clear_queue(); /* Empty the keyboard buffer */ | 1056 | button_clear_queue(); /* Empty the keyboard buffer */ |
1057 | if(gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES) | 1057 | if(gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES) |
1058 | rolo_load(BOOTDIR "/" BOOTFILE); | 1058 | rolo_load(BOOTDIR "/" BOOTFILE); |