summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 9ce5a9c5f0..017e9877f1 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -70,7 +70,7 @@
70extern bool language_changed; 70extern bool language_changed;
71 71
72/* a table for the know file types */ 72/* a table for the know file types */
73struct filetype filetypes[] = { 73const struct filetype filetypes[] = {
74 { ".mp3", TREE_ATTR_MPA, File, VOICE_EXT_MPA }, 74 { ".mp3", TREE_ATTR_MPA, File, VOICE_EXT_MPA },
75 { ".mp2", TREE_ATTR_MPA, File, VOICE_EXT_MPA }, 75 { ".mp2", TREE_ATTR_MPA, File, VOICE_EXT_MPA },
76 { ".mpa", TREE_ATTR_MPA, File, VOICE_EXT_MPA }, 76 { ".mpa", TREE_ATTR_MPA, File, VOICE_EXT_MPA },
@@ -132,7 +132,7 @@ void browse_root(void)
132#endif 132#endif
133} 133}
134 134
135void tree_get_filetypes(struct filetype** types, int* count) 135void tree_get_filetypes(const struct filetype** types, int* count)
136{ 136{
137 *types = filetypes; 137 *types = filetypes;
138 *count = sizeof(filetypes) / sizeof(*filetypes); 138 *count = sizeof(filetypes) / sizeof(*filetypes);