From 9478cc6f8a1f5155131bb001ed76e5309bfc4951 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 3 Aug 2004 19:22:56 +0000 Subject: More const policeing step 4 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4983 a1c6a512-1295-4272-9138-f99709370657 --- firmware/id3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/id3.c') diff --git a/firmware/id3.c b/firmware/id3.c index 03c37c027e..0a08fa0de8 100644 --- a/firmware/id3.c +++ b/firmware/id3.c @@ -269,7 +269,7 @@ static int parsegenre( struct mp3entry* entry, char* tag, int bufferpos ) } } -static struct tag_resolver taglist[] = { +static const struct tag_resolver taglist[] = { { "TPE1", 4, offsetof(struct mp3entry, artist), NULL }, { "TP1", 3, offsetof(struct mp3entry, artist), NULL }, { "TIT2", 4, offsetof(struct mp3entry, title), NULL }, @@ -383,7 +383,7 @@ static int unicode_munge(char** string, int *len) { static bool setid3v1title(int fd, struct mp3entry *entry) { unsigned char buffer[128]; - static char offsets[] = {3, 33, 63, 93, 125, 127}; + static const char offsets[] = {3, 33, 63, 93, 125, 127}; int i, j; if (-1 == lseek(fd, -128, SEEK_END)) @@ -649,7 +649,7 @@ static void setid3v2title(int fd, struct mp3entry *entry) processing function will be called via a pointer to function. */ for (i=0; ioffset); char* tag; @@ -682,7 +682,7 @@ static void setid3v2title(int fd, struct mp3entry *entry) } if( i == TAGLIST_SIZE ) { - /* no tag in tagList was found, or it was a repeat. + /* no tag in tagList was found, or it was a repeat. skip it using the total size */ if(global_unsynch && version <= ID3_VER_2_3) { -- cgit v1.2.3