summaryrefslogtreecommitdiff
path: root/apps/filetree.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-04-26 09:30:24 +0000
committerNils Wallménius <nils@rockbox.org>2008-04-26 09:30:24 +0000
commit33c44461e1b5fb9aff2f8ba7470ad2449b3c410e (patch)
tree4dac157ab03a45868ba75e07af9fb92766fa4ccd /apps/filetree.c
parente1bc2d5b71bd424325e852b0ef9a89252dac1471 (diff)
downloadrockbox-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/filetree.c')
-rw-r--r--apps/filetree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/filetree.c b/apps/filetree.c
index e8fb459d52..cac2c79034 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -104,7 +104,7 @@ bool ft_play_playlist(char* pathname, char* dirname, char* filename)
104 if (global_settings.warnon_erase_dynplaylist && 104 if (global_settings.warnon_erase_dynplaylist &&
105 playlist_modified(NULL)) 105 playlist_modified(NULL))
106 { 106 {
107 char *lines[] = {ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)}; 107 const char *lines[] = {ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)};
108 struct text_message message = {lines, 1}; 108 struct text_message message = {lines, 1};
109 109
110 if (gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES) 110 if (gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES)
@@ -408,8 +408,8 @@ int ft_enter(struct tree_context* c)
408 !global_settings.party_mode && 408 !global_settings.party_mode &&
409 playlist_modified(NULL)) 409 playlist_modified(NULL))
410 { 410 {
411 char *lines[]={ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)}; 411 static const char *lines[]={ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)};
412 struct text_message message={lines, 1}; 412 static const struct text_message message={lines, 1};
413 413
414 if(gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES) 414 if(gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES)
415 break; 415 break;