summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-10-29 15:09:09 +0000
committerNils Wallménius <nils@rockbox.org>2009-10-29 15:09:09 +0000
commit67f616478a1c1f095a0b04371e17a2f4e0e9df66 (patch)
treea0f26ccb154bb8319f9887e6c7ba66738b876b19 /apps
parentf31c1ffd8cf4ac7203628da4423fbb90d8fcafc4 (diff)
Const correctness
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23402 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/quickscreen.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c
index c7774baef4..6675407795 100644
--- a/apps/gui/quickscreen.c
+++ b/apps/gui/quickscreen.c
@@ -182,7 +182,7 @@ static void gui_quickscreen_draw(const struct gui_quickscreen *qs,
title = P2STR(ID2P(qs->items[i]->lang_id));
setting = qs->items[i]->setting;
temp = option_value_as_int(qs->items[i]);
- value = option_get_valuestring((struct settings_list*)qs->items[i],
+ value = option_get_valuestring(qs->items[i],
buf, MAX_PATH, temp);
if (viewport_get_nb_lines(vp) < 2)
@@ -218,7 +218,7 @@ static void gui_quickscreen_draw(const struct gui_quickscreen *qs,
display->set_viewport(NULL);
}
-static void talk_qs_option(struct settings_list *opt, bool enqueue)
+static void talk_qs_option(const struct settings_list *opt, bool enqueue)
{
if (global_settings.talk_menu) {
if (!enqueue)
@@ -260,8 +260,8 @@ static bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button)
default:
return false;
}
- option_select_next_val((struct settings_list *)qs->items[item], invert, true);
- talk_qs_option((struct settings_list *)qs->items[item], false);
+ option_select_next_val(qs->items[item], invert, true);
+ talk_qs_option(qs->items[item], false);
return true;
}
@@ -309,10 +309,10 @@ static bool gui_syncquickscreen_run(struct gui_quickscreen * qs, int button_ente
queued up, but can be interrupted as soon as a setting is
changed. */
cond_talk_ids(VOICE_QUICKSCREEN);
- talk_qs_option((struct settings_list *)qs->items[QUICKSCREEN_TOP], true);
- talk_qs_option((struct settings_list *)qs->items[QUICKSCREEN_LEFT], true);
- talk_qs_option((struct settings_list *)qs->items[QUICKSCREEN_BOTTOM], true);
- talk_qs_option((struct settings_list *)qs->items[QUICKSCREEN_RIGHT], true);
+ talk_qs_option(qs->items[QUICKSCREEN_TOP], true);
+ talk_qs_option(qs->items[QUICKSCREEN_LEFT], true);
+ talk_qs_option(qs->items[QUICKSCREEN_BOTTOM], true);
+ talk_qs_option(qs->items[QUICKSCREEN_RIGHT], true);
while (true) {
button = get_action(CONTEXT_QUICKSCREEN, HZ/5);
#ifdef HAVE_TOUCHSCREEN