summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-02-12 21:46:10 +0000
committerDave Chapman <dave@dchapman.com>2007-02-12 21:46:10 +0000
commit2743cb46b9fd78b1acfb996c88a20a72aa11e6d4 (patch)
tree003f72235424b89f1235ec6afc486cda1aed8e12 /apps
parenta957b2249e31a09a512f41438844aa2b592a46fe (diff)
downloadrockbox-2743cb46b9fd78b1acfb996c88a20a72aa11e6d4.tar.gz
rockbox-2743cb46b9fd78b1acfb996c88a20a72aa11e6d4.zip
Fix signedness warning (only visible when building tools/database.c)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12291 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/metadata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index eddc55e76f..81b2a3f713 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -572,7 +572,7 @@ static bool get_speex_metadata(int fd, struct mp3entry* id3)
*/
/* Use the path name of the id3 structure as a temporary buffer. */
- unsigned char* buf = id3->path;
+ unsigned char* buf = (unsigned char*)id3->path;
long comment_size;
long remaining = 0;
long last_serial = 0;
@@ -2239,7 +2239,7 @@ bool get_metadata(struct track_info* track, int fd, const char* trackname,
break;
case AFMT_NSF:
- buf = track->id3.path;
+ buf = (unsigned char *)track->id3.path;
if ((lseek(fd, 0, SEEK_SET) < 0) || ((read(fd, buf, 8)) < 8))
{
DEBUGF("lseek or read failed\n");