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/playlist_catalog.c | |
parent | e1bc2d5b71bd424325e852b0ef9a89252dac1471 (diff) | |
download | rockbox-33c44461e1b5fb9aff2f8ba7470ad2449b3c410e.tar.gz rockbox-33c44461e1b5fb9aff2f8ba7470ad2449b3c410e.tar.bz2 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/playlist_catalog.c')
-rw-r--r-- | apps/playlist_catalog.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c index 9ac9e32e00..2b5020f7f3 100644 --- a/apps/playlist_catalog.c +++ b/apps/playlist_catalog.c @@ -378,11 +378,9 @@ static int add_to_playlist(const char* playlist, char* sel, int sel_attr) { /* search directory for tracks and append to playlist */ bool recurse = false; - char *lines[] = { - (char *)str(LANG_RECURSE_DIRECTORY_QUESTION), - sel - }; - struct text_message message={lines, 2}; + const char *lines[] = { + str(LANG_RECURSE_DIRECTORY_QUESTION), sel}; + const struct text_message message={lines, 2}; struct add_track_context context; if (global_settings.recursive_dir_insert != RECURSE_ASK) |