aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2006-07-17 21:46:32 +0000
committerWarren Dukes <warren.dukes@gmail.com>2006-07-17 21:46:32 +0000
commit0bf396d610a78a16e49fe72f9ba4aa9a49a6053c (patch)
tree256510d9881995736292afa522a3c38b7d2aee20 /src/tag.c
parent7fdcd56a99f4c302d0e56c68e9c9db22d59b31b5 (diff)
downloadmpd-0bf396d610a78a16e49fe72f9ba4aa9a49a6053c.tar.gz
mpd-0bf396d610a78a16e49fe72f9ba4aa9a49a6053c.tar.xz
mpd-0bf396d610a78a16e49fe72f9ba4aa9a49a6053c.zip
some quick hacks to avoid signedness warnings with gcc4
git-svn-id: https://svn.musicpd.org/mpd/trunk@4387 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c10
1 files changed, 5 insertions, 5 deletions
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;