summaryrefslogtreecommitdiffstats
path: root/apps/bookmark.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/bookmark.c
parente1bc2d5b71bd424325e852b0ef9a89252dac1471 (diff)
downloadrockbox-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/bookmark.c')
-rw-r--r--apps/bookmark.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index 30102bb954..13c9abe936 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -187,12 +187,12 @@ bool bookmark_autobookmark(void)
return write_bookmark(false);
}
#ifdef HAVE_LCD_BITMAP
- unsigned char *lines[]={ID2P(LANG_AUTO_BOOKMARK_QUERY)};
- struct text_message message={(char **)lines, 1};
+ const char *lines[]={ID2P(LANG_AUTO_BOOKMARK_QUERY)};
+ const struct text_message message={lines, 1};
#else
- unsigned char *lines[]={ID2P(LANG_AUTO_BOOKMARK_QUERY),
+ const char *lines[]={ID2P(LANG_AUTO_BOOKMARK_QUERY),
str(LANG_CONFIRM_WITH_BUTTON)};
- struct text_message message={(char **)lines, 2};
+ const struct text_message message={lines, 2};
#endif
#if LCD_DEPTH > 1
show_main_backdrop(); /* switch to main backdrop as we may come from wps */