diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-02-28 14:13:35 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-02-28 14:13:35 +0000 |
commit | 7ab1cd7b1b10a9b355ad05a6acd4412069af44cc (patch) | |
tree | 7b67b28238c1d8c91a762d4b73de757ca580a61d /apps/gui/skin_engine/skin_tokens.c | |
parent | 38efc71615dcaa940aac82d9da6da8e1363443ea (diff) |
Save some RAM by changing a char[] into a const char * in struct afmt_entry. Make other fields const too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24970 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index e6dfc95f12..5228dd16bc 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -64,10 +64,10 @@ extern struct wps_state wps_state; -static char* get_codectype(const struct mp3entry* id3) +static const char* get_codectype(const struct mp3entry* id3) { if (id3 && id3->codectype < AFMT_NUM_CODECS) { - return (char*)audio_formats[id3->codectype].label; + return audio_formats[id3->codectype].label; } else { return NULL; } |