From 0bf396d610a78a16e49fe72f9ba4aa9a49a6053c Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 17 Jul 2006 21:46:32 +0000 Subject: some quick hacks to avoid signedness warnings with gcc4 git-svn-id: https://svn.musicpd.org/mpd/trunk@4387 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/tag.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/tag.c') diff --git a/src/tag.c b/src/tag.c index e8f976646..5ae982e44 100644 --- a/src/tag.c +++ b/src/tag.c @@ -347,13 +347,13 @@ MpdTag * apeDup(char * file) { MpdTag * ret = NULL; FILE * fp = NULL; int tagCount; - unsigned char * buffer = NULL; - unsigned char * p; + char * buffer = NULL; + char * p; int tagLen; int size; unsigned long flags; int i; - unsigned char * key; + char * key; struct { unsigned char id[8]; @@ -411,10 +411,10 @@ MpdTag * apeDup(char * file) { tagCount = readLEuint32(footer.tagCount); p = buffer; while(tagCount-- && tagLen > 10) { - size = readLEuint32(p); + size = readLEuint32((unsigned char *)p); p += 4; tagLen -= 4; - flags = readLEuint32(p); + flags = readLEuint32((unsigned char *)p); p += 4; tagLen -= 4; -- cgit v1.2.3