diff options
author | Brandon Low <lostlogic@rockbox.org> | 2007-11-30 18:48:07 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2007-11-30 18:48:07 +0000 |
commit | df40425f20e23b3f10bc3eaa20e631b74f374c4c (patch) | |
tree | d82ab1280144144e4bc3721cea4f53e6610334b1 /apps/metadata.c | |
parent | 8b99ad39b19d3bb95ee77d4534d031e17484fc77 (diff) | |
download | rockbox-df40425f20e23b3f10bc3eaa20e631b74f374c4c.tar.gz rockbox-df40425f20e23b3f10bc3eaa20e631b74f374c4c.zip |
Fix yellows I made the other day, gcc is an dumb, IMO
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15859 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata.c')
-rw-r--r-- | apps/metadata.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/metadata.c b/apps/metadata.c index 2f60b11fa6..0d69cb1645 100644 --- a/apps/metadata.c +++ b/apps/metadata.c | |||
@@ -331,9 +331,9 @@ void strip_tags(int handle_id) | |||
331 | static const unsigned char tag[] = "TAG"; | 331 | static const unsigned char tag[] = "TAG"; |
332 | static const unsigned char apetag[] = "APETAGEX"; | 332 | static const unsigned char apetag[] = "APETAGEX"; |
333 | size_t len, version; | 333 | size_t len, version; |
334 | unsigned char *tail; | 334 | void *tail; |
335 | 335 | ||
336 | if (bufgettail(handle_id, 128, (void **)&tail) != 128) | 336 | if (bufgettail(handle_id, 128, &tail) != 128) |
337 | return; | 337 | return; |
338 | 338 | ||
339 | if (memcmp(tail, tag, 3) == 0) | 339 | if (memcmp(tail, tag, 3) == 0) |
@@ -344,7 +344,7 @@ void strip_tags(int handle_id) | |||
344 | } | 344 | } |
345 | 345 | ||
346 | /* Get a new tail, as the old one may have been cut */ | 346 | /* Get a new tail, as the old one may have been cut */ |
347 | if (bufgettail(handle_id, 32, (void **)&tail) != 32) | 347 | if (bufgettail(handle_id, 32, &tail) != 32) |
348 | return; | 348 | return; |
349 | 349 | ||
350 | /* Check for APE tag (look for the APE tag footer) */ | 350 | /* Check for APE tag (look for the APE tag footer) */ |
@@ -352,8 +352,8 @@ void strip_tags(int handle_id) | |||
352 | return; | 352 | return; |
353 | 353 | ||
354 | /* Read the version and length from the footer */ | 354 | /* Read the version and length from the footer */ |
355 | version = get_long_le(&tail[8]); | 355 | version = get_long_le(&((unsigned char *)tail)[8]); |
356 | len = get_long_le(&tail[12]); | 356 | len = get_long_le(&((unsigned char *)tail)[12]); |
357 | if (version == 2000) | 357 | if (version == 2000) |
358 | len += 32; /* APEv2 has a 32 byte header */ | 358 | len += 32; /* APEv2 has a 32 byte header */ |
359 | 359 | ||