forked from len0rd/rockbox
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
This commit is contained in:
parent
38efc71615
commit
7ab1cd7b1b
2 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue