From 33c44461e1b5fb9aff2f8ba7470ad2449b3c410e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sat, 26 Apr 2008 09:30:24 +0000 Subject: 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 --- apps/root_menu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/root_menu.c') diff --git a/apps/root_menu.c b/apps/root_menu.c index dcbd95c..378b776 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -143,8 +143,9 @@ static int browser(void* param) { /* Prompt the user */ reinit_attempted = true; - char *lines[]={ID2P(LANG_TAGCACHE_BUSY), ID2P(LANG_TAGCACHE_FORCE_UPDATE)}; - struct text_message message={lines, 2}; + static const char *lines[]={ + ID2P(LANG_TAGCACHE_BUSY), ID2P(LANG_TAGCACHE_FORCE_UPDATE)}; + static const struct text_message message={lines, 2}; if(gui_syncyesno_run(&message, NULL, NULL) == YESNO_NO) break; int i; -- cgit v1.1