summaryrefslogtreecommitdiff
path: root/apps/plugins/shortcuts/shortcuts_view.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-08-20 16:47:44 +0000
committerNils Wallménius <nils@rockbox.org>2009-08-20 16:47:44 +0000
commit3200d04d75c5e7556ed8880b155533e881a4d1e1 (patch)
tree188e2c9525b25cb8922a14766e51ab02bad3f831 /apps/plugins/shortcuts/shortcuts_view.c
parent0a1728444882cdbc6a0c815bd88464de25ad94e9 (diff)
downloadrockbox-3200d04d75c5e7556ed8880b155533e881a4d1e1.tar.gz
rockbox-3200d04d75c5e7556ed8880b155533e881a4d1e1.zip
Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22440 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/shortcuts/shortcuts_view.c')
-rw-r--r--apps/plugins/shortcuts/shortcuts_view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/shortcuts/shortcuts_view.c b/apps/plugins/shortcuts/shortcuts_view.c
index f6a26a519d..b964968737 100644
--- a/apps/plugins/shortcuts/shortcuts_view.c
+++ b/apps/plugins/shortcuts/shortcuts_view.c
@@ -40,8 +40,8 @@ static bool usb_connected = false;
40enum sc_list_action_type draw_sc_list(struct gui_synclist *gui_sc); 40enum sc_list_action_type draw_sc_list(struct gui_synclist *gui_sc);
41 41
42/* Will be passed sc_file* as data */ 42/* Will be passed sc_file* as data */
43char* build_sc_list(int selected_item, void *data, 43static const char* build_sc_list(int selected_item, void *data,
44 char *buffer, size_t buffer_len); 44 char *buffer, size_t buffer_len);
45 45
46/* Returns true iff we should leave the main loop */ 46/* Returns true iff we should leave the main loop */
47bool list_sc(void); 47bool list_sc(void);
@@ -89,8 +89,8 @@ enum sc_list_action_type draw_sc_list(struct gui_synclist *gui_sc)
89} 89}
90 90
91 91
92char* build_sc_list(int selected_item, void *data, 92static const char* build_sc_list(int selected_item, void *data,
93 char *buffer, size_t buffer_len) 93 char *buffer, size_t buffer_len)
94{ 94{
95 sc_file_t *file = (sc_file_t*)data; 95 sc_file_t *file = (sc_file_t*)data;
96 96