diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 19:22:56 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 19:22:56 +0000 |
commit | 9478cc6f8a1f5155131bb001ed76e5309bfc4951 (patch) | |
tree | 8453ecfa3ac88269986000eb432441df318cd04c /firmware/id3.c | |
parent | 2b0694c6944f2ea155291b62a00c11b89cd63914 (diff) | |
download | rockbox-9478cc6f8a1f5155131bb001ed76e5309bfc4951.tar.gz rockbox-9478cc6f8a1f5155131bb001ed76e5309bfc4951.zip |
More const policeing step 4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4983 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/id3.c')
-rw-r--r-- | firmware/id3.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 ) | |||
269 | } | 269 | } |
270 | } | 270 | } |
271 | 271 | ||
272 | static struct tag_resolver taglist[] = { | 272 | static const struct tag_resolver taglist[] = { |
273 | { "TPE1", 4, offsetof(struct mp3entry, artist), NULL }, | 273 | { "TPE1", 4, offsetof(struct mp3entry, artist), NULL }, |
274 | { "TP1", 3, offsetof(struct mp3entry, artist), NULL }, | 274 | { "TP1", 3, offsetof(struct mp3entry, artist), NULL }, |
275 | { "TIT2", 4, offsetof(struct mp3entry, title), NULL }, | 275 | { "TIT2", 4, offsetof(struct mp3entry, title), NULL }, |
@@ -383,7 +383,7 @@ static int unicode_munge(char** string, int *len) { | |||
383 | static bool setid3v1title(int fd, struct mp3entry *entry) | 383 | static bool setid3v1title(int fd, struct mp3entry *entry) |
384 | { | 384 | { |
385 | unsigned char buffer[128]; | 385 | unsigned char buffer[128]; |
386 | static char offsets[] = {3, 33, 63, 93, 125, 127}; | 386 | static const char offsets[] = {3, 33, 63, 93, 125, 127}; |
387 | int i, j; | 387 | int i, j; |
388 | 388 | ||
389 | if (-1 == lseek(fd, -128, SEEK_END)) | 389 | if (-1 == lseek(fd, -128, SEEK_END)) |
@@ -649,7 +649,7 @@ static void setid3v2title(int fd, struct mp3entry *entry) | |||
649 | processing function will be called via a pointer to function. */ | 649 | processing function will be called via a pointer to function. */ |
650 | 650 | ||
651 | for (i=0; i<TAGLIST_SIZE; i++) { | 651 | for (i=0; i<TAGLIST_SIZE; i++) { |
652 | struct tag_resolver* tr = &taglist[i]; | 652 | const struct tag_resolver* tr = &taglist[i]; |
653 | char** ptag = (char**) (((char*)entry) + tr->offset); | 653 | char** ptag = (char**) (((char*)entry) + tr->offset); |
654 | char* tag; | 654 | char* tag; |
655 | 655 | ||
@@ -682,7 +682,7 @@ static void setid3v2title(int fd, struct mp3entry *entry) | |||
682 | } | 682 | } |
683 | 683 | ||
684 | if( i == TAGLIST_SIZE ) { | 684 | if( i == TAGLIST_SIZE ) { |
685 | /* no tag in tagList was found, or it was a repeat. | 685 | /* no tag in tagList was found, or it was a repeat. |
686 | skip it using the total size */ | 686 | skip it using the total size */ |
687 | 687 | ||
688 | if(global_unsynch && version <= ID3_VER_2_3) { | 688 | if(global_unsynch && version <= ID3_VER_2_3) { |