diff options
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/main_menu.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 8e4ee61aee..57db13f52c 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c | |||
@@ -55,15 +55,18 @@ static const struct browse_folder_info config = {ROCKBOX_DIR, SHOW_CFG}; | |||
55 | 55 | ||
56 | static int reset_settings(void) | 56 | static int reset_settings(void) |
57 | { | 57 | { |
58 | const unsigned char *lines[]={ID2P(LANG_RESET_ASK)}; | 58 | static const char *lines[]={ID2P(LANG_RESET_ASK)}; |
59 | const unsigned char *yes_lines[]={ | 59 | static const char *yes_lines[]={ |
60 | str(LANG_SETTINGS), | 60 | ID2P(LANG_SETTINGS), |
61 | ID2P(LANG_RESET_DONE_CLEAR) | 61 | ID2P(LANG_RESET_DONE_CLEAR) |
62 | }; | 62 | }; |
63 | const unsigned char *no_lines[]={yes_lines[0], ID2P(LANG_CANCEL)}; | 63 | static const char *no_lines[]={ |
64 | struct text_message message={(char **)lines, 1}; | 64 | ID2P(LANG_SETTINGS), |
65 | struct text_message yes_message={(char **)yes_lines, 2}; | 65 | ID2P(LANG_CANCEL) |
66 | struct text_message no_message={(char **)no_lines, 2}; | 66 | }; |
67 | static const struct text_message message={lines, 1}; | ||
68 | static const struct text_message yes_message={yes_lines, 2}; | ||
69 | static const struct text_message no_message={no_lines, 2}; | ||
67 | 70 | ||
68 | switch(gui_syncyesno_run(&message, &yes_message, &no_message)) | 71 | switch(gui_syncyesno_run(&message, &yes_message, &no_message)) |
69 | { | 72 | { |